Class: Google::Apis::ContentV2::AccountBusinessInformation

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountBusinessInformation

Returns a new instance of AccountBusinessInformation



221
222
223
# File 'generated/google/apis/content_v2/classes.rb', line 221

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2::AccountAddress

The address of the business. Corresponds to the JSON property address



209
210
211
# File 'generated/google/apis/content_v2/classes.rb', line 209

def address
  @address
end

#customer_serviceGoogle::Apis::ContentV2::AccountCustomerService

The customer service information of the business. Corresponds to the JSON property customerService



214
215
216
# File 'generated/google/apis/content_v2/classes.rb', line 214

def customer_service
  @customer_service
end

#phone_numberString

The phone number of the business. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


219
220
221
# File 'generated/google/apis/content_v2/classes.rb', line 219

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



226
227
228
229
230
# File 'generated/google/apis/content_v2/classes.rb', line 226

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @customer_service = args[:customer_service] if args.key?(:customer_service)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
end