Class: Google::Apis::WalletobjectsV1::FieldReference

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

Reference definition to use with field overrides.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FieldReference

Returns a new instance of FieldReference.



2239
2240
2241
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2239

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

Instance Attribute Details

#date_formatString

Only valid if the fieldPath references a date field. Chooses how the date field will be formatted and displayed in the UI. Corresponds to the JSON property dateFormat

Returns:

  • (String)


2230
2231
2232
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2230

def date_format
  @date_format
end

#field_pathString

Path to the field being referenced, prefixed with "object" or "class" and separated with dots. For example, it may be the string "object.purchaseDetails. purchasePrice". Corresponds to the JSON property fieldPath

Returns:

  • (String)


2237
2238
2239
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2237

def field_path
  @field_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2244
2245
2246
2247
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2244

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