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.



2356
2357
2358
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2356

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



2354
2355
2356
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2354

def fields
  @fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2361
2362
2363
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2361

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