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.
183 184 185 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 183 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
176 177 178 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 176 def display_name @display_name end |
#value ⇒ Object
The attribute value.
Corresponds to the JSON property value
181 182 183 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 181 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
188 189 190 191 |
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 188 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @value = args[:value] if args.key?(:value) end |