Class: Google::Apis::MerchantapiAccountsV1beta::Homepage

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

Overview

A store's homepage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Homepage

Returns a new instance of Homepage.



1027
1028
1029
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1027

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

Instance Attribute Details

#claimedBoolean Also known as: claimed?

Output only. Whether the homepage is claimed. See https://support.google.com/ merchants/answer/176793. Corresponds to the JSON property claimed

Returns:

  • (Boolean)


1013
1014
1015
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1013

def claimed
  @claimed
end

#nameString

Identifier. The resource name of the store's homepage. Format: accounts/ account/homepage Corresponds to the JSON property name

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1020

def name
  @name
end

#uriString

Required. The URI (typically a URL) of the store's homepage. Corresponds to the JSON property uri

Returns:

  • (String)


1025
1026
1027
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1025

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1032
1033
1034
1035
1036
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1032

def update!(**args)
  @claimed = args[:claimed] if args.key?(:claimed)
  @name = args[:name] if args.key?(:name)
  @uri = args[:uri] if args.key?(:uri)
end