Class: Google::Apis::AdsensehostV4_1::Account

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

Instance Method Summary collapse

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

#idString

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

Returns:

  • (String)


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

def id
  @id
end

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#nameString

Name of this account. Corresponds to the JSON property name

Returns:

  • (String)


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

def name
  @name
end

#statusString

Approval status of this account. One of: PENDING, APPROVED, DISABLED. Corresponds to the JSON property status

Returns:

  • (String)


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