Class: Google::Apis::AdexchangesellerV2_0::Account

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangeseller_v2_0/classes.rb,
generated/google/apis/adexchangeseller_v2_0/representations.rb,
generated/google/apis/adexchangeseller_v2_0/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



44
45
46
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 44

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/adexchangeseller_v2_0/classes.rb', line 32

def id
  @id
end

#kindString

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

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/adexchangeseller_v2_0/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/adexchangeseller_v2_0/classes.rb', line 42

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
53
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 49

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