Class: Google::Apis::YoutubeV3::LiveChatPollItem

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

Returns a new instance of LiveChatPollItem.


4809
4810
4811
# File 'generated/google/apis/youtube_v3/classes.rb', line 4809

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

Instance Attribute Details

#descriptionString

Plain text description of the item. Corresponds to the JSON property description

Returns:

  • (String)

4802
4803
4804
# File 'generated/google/apis/youtube_v3/classes.rb', line 4802

def description
  @description
end

#item_idString

Corresponds to the JSON property itemId

Returns:

  • (String)

4807
4808
4809
# File 'generated/google/apis/youtube_v3/classes.rb', line 4807

def item_id
  @item_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4814
4815
4816
4817
# File 'generated/google/apis/youtube_v3/classes.rb', line 4814

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @item_id = args[:item_id] if args.key?(:item_id)
end