Class: Google::Apis::MybusinessbusinessinformationV1::AttributeValueMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

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

Returns:

  • (String)


176
177
178
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 176

def display_name
  @display_name
end

#valueObject

The attribute value. Corresponds to the JSON property value

Returns:

  • (Object)


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