Class: Google::Apis::AdsensehostV4_1::Account
- Inherits:
-
Object
- Object
- Google::Apis::AdsensehostV4_1::Account
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adsensehost_v4_1/classes.rb,
generated/google/apis/adsensehost_v4_1/representations.rb,
generated/google/apis/adsensehost_v4_1/representations.rb
Instance Attribute Summary collapse
-
#id ⇒ String
Unique identifier of this account.
-
#kind ⇒ String
Kind of resource this is, in this case adsensehost#account.
-
#name ⇒ String
Name of this account.
-
#status ⇒ String
Approval status of this account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Account
constructor
A new instance of Account.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Account
Returns a new instance of Account.
49 50 51 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 49 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Unique identifier of this account.
Corresponds to the JSON property id
32 33 34 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 32 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adsensehost#account.
Corresponds to the JSON property kind
37 38 39 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 37 def kind @kind end |
#name ⇒ String
Name of this account.
Corresponds to the JSON property name
42 43 44 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 42 def name @name end |
#status ⇒ String
Approval status of this account. One of: PENDING, APPROVED, DISABLED.
Corresponds to the JSON property status
47 48 49 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 47 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
54 55 56 57 58 59 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 54 def update!(**args) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @status = args[:status] if args.key?(:status) end |