Class: Google::Apis::ContentV2_1::GmbAccountsGmbAccount

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

Returns a new instance of GmbAccountsGmbAccount.



3262
3263
3264
# File 'lib/google/apis/content_v2_1/classes.rb', line 3262

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)


3245
3246
3247
# File 'lib/google/apis/content_v2_1/classes.rb', line 3245

def email
  @email
end

#listing_countFixnum

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

Returns:

  • (Fixnum)


3250
3251
3252
# File 'lib/google/apis/content_v2_1/classes.rb', line 3250

def listing_count
  @listing_count
end

#nameString

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

Returns:

  • (String)


3255
3256
3257
# File 'lib/google/apis/content_v2_1/classes.rb', line 3255

def name
  @name
end

#typeString

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

Returns:

  • (String)


3260
3261
3262
# File 'lib/google/apis/content_v2_1/classes.rb', line 3260

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3267
3268
3269
3270
3271
3272
# File 'lib/google/apis/content_v2_1/classes.rb', line 3267

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