Class: Google::Apis::MybusinessbusinessinformationV1::AttributeValueMetadata
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinessinformationV1::AttributeValueMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/mybusinessbusinessinformation_v1/classes.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb,
lib/google/apis/mybusinessbusinessinformation_v1/representations.rb
Overview
Metadata for supported attribute values.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The display name for this value, localized where available; otherwise, in English.
-
#value ⇒ Object
The attribute value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttributeValueMetadata
constructor
A new instance of AttributeValueMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AttributeValueMetadata
Returns a new instance of AttributeValueMetadata.
202 203 204 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 202 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The display name for this value, localized where available; otherwise, in
English. The value display name is intended to be used in context with the
attribute display name. For example, for a "WiFi" enum attribute, this could
contain "Paid" to represent paid Wi-Fi.
Corresponds to the JSON property displayName
195 196 197 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 195 def display_name @display_name end |
#value ⇒ Object
The attribute value.
Corresponds to the JSON property value
200 201 202 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 200 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
207 208 209 210 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 207 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @value = args[:value] if args.key?(:value) end |