Class: Google::Apis::WalletobjectsV1::FieldReference
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::FieldReference
- 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
-
#date_format ⇒ String
Only valid if the
fieldPathreferences a date field. -
#field_path ⇒ String
Path to the field being referenced, prefixed with "object" or "class" and separated with dots.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FieldReference
constructor
A new instance of FieldReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FieldReference
Returns a new instance of FieldReference.
2269 2270 2271 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2269 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_format ⇒ String
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
2260 2261 2262 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2260 def date_format @date_format end |
#field_path ⇒ String
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
2267 2268 2269 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2267 def field_path @field_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2274 2275 2276 2277 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 2274 def update!(**args) @date_format = args[:date_format] if args.key?(:date_format) @field_path = args[:field_path] if args.key?(:field_path) end |