Class: Google::Apis::WalletobjectsV1::FieldSelector

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb

Overview

Custom field selector to use with field overrides.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FieldSelector

Returns a new instance of FieldSelector.



2253
2254
2255
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2253

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fieldsArray<Google::Apis::WalletobjectsV1::FieldReference>

If more than one reference is supplied, then the first one that references a non-empty field will be displayed. Corresponds to the JSON property fields



2251
2252
2253
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2251

def fields
  @fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2258
2259
2260
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2258

def update!(**args)
  @fields = args[:fields] if args.key?(:fields)
end