Class: Google::Apis::ContentV2::AccountGoogleMyBusinessLink

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountGoogleMyBusinessLink

Returns a new instance of AccountGoogleMyBusinessLink.



291
292
293
# File 'lib/google/apis/content_v2/classes.rb', line 291

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

Instance Attribute Details

#gmb_emailString

The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account. Corresponds to the JSON property gmbEmail

Returns:

  • (String)


283
284
285
# File 'lib/google/apis/content_v2/classes.rb', line 283

def gmb_email
  @gmb_email
end

#statusString

Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - "active" - "pending" Corresponds to the JSON property status

Returns:

  • (String)


289
290
291
# File 'lib/google/apis/content_v2/classes.rb', line 289

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



296
297
298
299
# File 'lib/google/apis/content_v2/classes.rb', line 296

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