Class: Google::Apis::ContentV2_1::AccountBusinessInformation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountBusinessInformation

Returns a new instance of AccountBusinessInformation.



243
244
245
# File 'lib/google/apis/content_v2_1/classes.rb', line 243

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

Instance Attribute Details

#addressGoogle::Apis::ContentV2_1::AccountAddress

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



231
232
233
# File 'lib/google/apis/content_v2_1/classes.rb', line 231

def address
  @address
end

#customer_serviceGoogle::Apis::ContentV2_1::AccountCustomerService

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



236
237
238
# File 'lib/google/apis/content_v2_1/classes.rb', line 236

def customer_service
  @customer_service
end

#phone_numberString

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

Returns:

  • (String)


241
242
243
# File 'lib/google/apis/content_v2_1/classes.rb', line 241

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



248
249
250
251
252
# File 'lib/google/apis/content_v2_1/classes.rb', line 248

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