Class: Google::Apis::YoutubeV3::LiveChatPollDetailsPollMetadata

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

Returns a new instance of LiveChatPollDetailsPollMetadata.



5072
5073
5074
# File 'lib/google/apis/youtube_v3/classes.rb', line 5072

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

Instance Attribute Details

#optionsArray<Google::Apis::YoutubeV3::LiveChatPollDetailsPollMetadataPollOption>

The options will be returned in the order that is displayed in 1P Corresponds to the JSON property options



5065
5066
5067
# File 'lib/google/apis/youtube_v3/classes.rb', line 5065

def options
  @options
end

#question_textString

Corresponds to the JSON property questionText

Returns:

  • (String)


5070
5071
5072
# File 'lib/google/apis/youtube_v3/classes.rb', line 5070

def question_text
  @question_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5077
5078
5079
5080
# File 'lib/google/apis/youtube_v3/classes.rb', line 5077

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