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.



2337
2338
2339
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2337

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



2335
2336
2337
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2335

def fields
  @fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2342
2343
2344
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2342

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