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.



5057
5058
5059
# File 'lib/google/apis/content_v2_1/classes.rb', line 5057

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

Instance Attribute Details

#emailString

The email which identifies the Business Profile. Corresponds to the JSON property email

Returns:

  • (String)


5040
5041
5042
# File 'lib/google/apis/content_v2_1/classes.rb', line 5040

def email
  @email
end

#listing_countFixnum

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

Returns:

  • (Fixnum)


5045
5046
5047
# File 'lib/google/apis/content_v2_1/classes.rb', line 5045

def listing_count
  @listing_count
end

#nameString

The name of the Business Profile. Corresponds to the JSON property name

Returns:

  • (String)


5050
5051
5052
# File 'lib/google/apis/content_v2_1/classes.rb', line 5050

def name
  @name
end

#typeString

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

Returns:

  • (String)


5055
5056
5057
# File 'lib/google/apis/content_v2_1/classes.rb', line 5055

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5062
5063
5064
5065
5066
5067
# File 'lib/google/apis/content_v2_1/classes.rb', line 5062

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