Class: Google::Apis::ContentV2::GmbAccountsGmbAccount

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
more...

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) ⇒ GmbAccountsGmbAccount

Returns a new instance of GmbAccountsGmbAccount

[View source]

2610
2611
2612
# File 'generated/google/apis/content_v2/classes.rb', line 2610

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

Instance Attribute Details

#emailString

The email which identifies the GMB account. Corresponds to the JSON property email

Returns:

  • (String)

2593
2594
2595
# File 'generated/google/apis/content_v2/classes.rb', line 2593

def email
  @email
end

#listing_countFixnum

Number of listings under this account. Corresponds to the JSON property listingCount

Returns:

  • (Fixnum)

2598
2599
2600
# File 'generated/google/apis/content_v2/classes.rb', line 2598

def listing_count
  @listing_count
end

#nameString

The name of the GMB account. Corresponds to the JSON property name

Returns:

  • (String)

2603
2604
2605
# File 'generated/google/apis/content_v2/classes.rb', line 2603

def name
  @name
end

#typeString

The type of the GMB account (User or Business). Corresponds to the JSON property type

Returns:

  • (String)

2608
2609
2610
# File 'generated/google/apis/content_v2/classes.rb', line 2608

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

2615
2616
2617
2618
2619
2620
# File 'generated/google/apis/content_v2/classes.rb', line 2615

def update!(**args)
  @email = args[:email] if args.key?(:email)
  @listing_count = args[:listing_count] if args.key?(:listing_count)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end
x

Warning: This is not the latest release.



Privacy · Terms