Class: Google::Apis::YoutubeV3::LiveChatPollDetailsPollMetadataPollOption
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::LiveChatPollDetailsPollMetadataPollOption
- 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
-
#option_text ⇒ String
Corresponds to the JSON property
optionText. -
#tally ⇒ Fixnum
Corresponds to the JSON property
tally.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LiveChatPollDetailsPollMetadataPollOption
constructor
A new instance of LiveChatPollDetailsPollMetadataPollOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LiveChatPollDetailsPollMetadataPollOption
Returns a new instance of LiveChatPollDetailsPollMetadataPollOption.
5266 5267 5268 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 5266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#option_text ⇒ String
Corresponds to the JSON property optionText
5259 5260 5261 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 5259 def option_text @option_text end |
#tally ⇒ Fixnum
Corresponds to the JSON property tally
5264 5265 5266 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 5264 def tally @tally end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5271 5272 5273 5274 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 5271 def update!(**args) @option_text = args[:option_text] if args.key?(:option_text) @tally = args[:tally] if args.key?(:tally) end |