Class: Tweetkit::Response::Tweets::Expansions::Polls::Poll::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/tweetkit/response.rb

Defined Under Namespace

Classes: Option

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Options

Returns a new instance of Options.



499
500
501
# File 'lib/tweetkit/response.rb', line 499

def initialize(options)
  @options = options.collect { |option| Option.new(option) }
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



497
498
499
# File 'lib/tweetkit/response.rb', line 497

def options
  @options
end