Class: Google::Apis::AdsensehostV4_1::CustomChannel
- Inherits:
-
Object
- Object
- Google::Apis::AdsensehostV4_1::CustomChannel
- 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
-
#code ⇒ String
Code of this custom channel, not necessarily unique across ad clients.
-
#id ⇒ String
Unique identifier of this custom channel.
-
#kind ⇒ String
Kind of resource this is, in this case adsensehost#customChannel.
-
#name ⇒ String
Name of this custom channel.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomChannel
constructor
A new instance of CustomChannel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomChannel
Returns a new instance of CustomChannel.
618 619 620 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 618 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Code of this custom channel, not necessarily unique across ad clients.
Corresponds to the JSON property code
600 601 602 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 600 def code @code end |
#id ⇒ String
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
606 607 608 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 606 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adsensehost#customChannel.
Corresponds to the JSON property kind
611 612 613 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 611 def kind @kind end |
#name ⇒ String
Name of this custom channel.
Corresponds to the JSON property name
616 617 618 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 616 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
623 624 625 626 627 628 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 623 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 |