Class: Google::Apis::MybusinessbusinessinformationV1::Attributes

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

A container for all the attributes for a given location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Attributes

Returns a new instance of Attributes.



209
210
211
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 209

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

Instance Attribute Details

#attributesArray<Google::Apis::MybusinessbusinessinformationV1::Attribute>

A collection of attributes that need to be updated. Corresponds to the JSON property attributes



201
202
203
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 201

def attributes
  @attributes
end

#nameString

Required. Google identifier for this location in the form of locations/ location_id/attributes. Corresponds to the JSON property name

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 207

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



214
215
216
217
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 214

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