Class: Google::Apis::AdsensehostV4_1::CustomChannel

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CustomChannel

Returns a new instance of CustomChannel



617
618
619
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 617

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeString

Code of this custom channel, not necessarily unique across ad clients. Corresponds to the JSON property code

Returns:

  • (String)


599
600
601
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 599

def code
  @code
end

#idString

Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. Corresponds to the JSON property id

Returns:

  • (String)


605
606
607
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 605

def id
  @id
end

#kindString

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

Returns:

  • (String)


610
611
612
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 610

def kind
  @kind
end

#nameString

Name of this custom channel. Corresponds to the JSON property name

Returns:

  • (String)


615
616
617
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 615

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



622
623
624
625
626
627
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 622

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