Class: Google::Apis::YoutubeV3::LiveChatPollDetailsPollMetadataPollOption

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LiveChatPollDetailsPollMetadataPollOption

Returns a new instance of LiveChatPollDetailsPollMetadataPollOption.



4989
4990
4991
# File 'lib/google/apis/youtube_v3/classes.rb', line 4989

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

Instance Attribute Details

#option_textString

Corresponds to the JSON property optionText

Returns:

  • (String)


4982
4983
4984
# File 'lib/google/apis/youtube_v3/classes.rb', line 4982

def option_text
  @option_text
end

#tallyFixnum

Corresponds to the JSON property tally

Returns:

  • (Fixnum)


4987
4988
4989
# File 'lib/google/apis/youtube_v3/classes.rb', line 4987

def tally
  @tally
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4994
4995
4996
4997
# File 'lib/google/apis/youtube_v3/classes.rb', line 4994

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