Class: Google::Apis::AdsenseV1_4::Account
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV1_4::Account
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adsense_v1_4/classes.rb,
generated/google/apis/adsense_v1_4/representations.rb,
generated/google/apis/adsense_v1_4/representations.rb
Instance Attribute Summary collapse
-
#creation_time ⇒ Fixnum
Corresponds to the JSON property
creation_time
. -
#id ⇒ String
Unique identifier of this account.
-
#kind ⇒ String
Kind of resource this is, in this case adsense#account.
-
#name ⇒ String
Name of this account.
-
#premium ⇒ Boolean
(also: #premium?)
Whether this account is premium.
-
#sub_accounts ⇒ Array<Google::Apis::AdsenseV1_4::Account>
Sub accounts of the this account.
-
#timezone ⇒ String
AdSense timezone of this account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Account
constructor
A new instance of Account.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Account
Returns a new instance of Account
65 66 67 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 65 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_time ⇒ Fixnum
Corresponds to the JSON property creation_time
32 33 34 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 32 def creation_time @creation_time end |
#id ⇒ String
Unique identifier of this account.
Corresponds to the JSON property id
37 38 39 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 37 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adsense#account.
Corresponds to the JSON property kind
42 43 44 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 42 def kind @kind end |
#name ⇒ String
Name of this account.
Corresponds to the JSON property name
47 48 49 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 47 def name @name end |
#premium ⇒ Boolean Also known as:
Whether this account is premium.
Corresponds to the JSON property premium
52 53 54 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 52 def premium @premium end |
#sub_accounts ⇒ Array<Google::Apis::AdsenseV1_4::Account>
Sub accounts of the this account.
Corresponds to the JSON property subAccounts
58 59 60 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 58 def sub_accounts @sub_accounts end |
#timezone ⇒ String
AdSense timezone of this account.
Corresponds to the JSON property timezone
63 64 65 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 63 def timezone @timezone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
70 71 72 73 74 75 76 77 78 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 70 def update!(**args) @creation_time = args[:creation_time] if args.key?(:creation_time) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @premium = args[:premium] if args.key?(:premium) @sub_accounts = args[:sub_accounts] if args.key?(:sub_accounts) @timezone = args[:timezone] if args.key?(:timezone) end |