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.



2313
2314
2315
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2313

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



2311
2312
2313
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2311

def fields
  @fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2318
2319
2320
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2318

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