Class: Google::Apis::YoutubeV3::LiveChatPollVotedDetails

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) ⇒ LiveChatPollVotedDetails

Returns a new instance of LiveChatPollVotedDetails.



4865
4866
4867
# File 'generated/google/apis/youtube_v3/classes.rb', line 4865

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

Instance Attribute Details

#item_idString

The poll item the user chose. Corresponds to the JSON property itemId

Returns:

  • (String)


4858
4859
4860
# File 'generated/google/apis/youtube_v3/classes.rb', line 4858

def item_id
  @item_id
end

#poll_idString

The poll the user voted on. Corresponds to the JSON property pollId

Returns:

  • (String)


4863
4864
4865
# File 'generated/google/apis/youtube_v3/classes.rb', line 4863

def poll_id
  @poll_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4870
4871
4872
4873
# File 'generated/google/apis/youtube_v3/classes.rb', line 4870

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