Class: Google::Apis::AdsenseV1_4::Account

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_timeFixnum

Corresponds to the JSON property creation_time

Returns:

  • (Fixnum)


32
33
34
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 32

def creation_time
  @creation_time
end

#idString

Unique identifier of this account. Corresponds to the JSON property id

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 37

def id
  @id
end

#kindString

Kind of resource this is, in this case adsense#account. Corresponds to the JSON property kind

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 42

def kind
  @kind
end

#nameString

Name of this account. Corresponds to the JSON property name

Returns:

  • (String)


47
48
49
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 47

def name
  @name
end

#premiumBoolean Also known as: premium?

Whether this account is premium. Corresponds to the JSON property premium

Returns:

  • (Boolean)


52
53
54
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 52

def premium
  @premium
end

#sub_accountsArray<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

#timezoneString

AdSense timezone of this account. Corresponds to the JSON property timezone

Returns:

  • (String)


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