Class: Tweetkit::Response::Tweets::Expansions::Polls
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Expansions::Polls
- Defined in:
- lib/tweetkit/response.rb
Defined Under Namespace
Classes: Poll
Instance Attribute Summary collapse
-
#polls ⇒ Object
Returns the value of attribute polls.
Instance Method Summary collapse
-
#initialize(polls) ⇒ Polls
constructor
A new instance of Polls.
Constructor Details
#initialize(polls) ⇒ Polls
Returns a new instance of Polls.
482 483 484 485 486 |
# File 'lib/tweetkit/response.rb', line 482 def initialize(polls) return unless polls @polls = polls.collect { |poll| Poll.new(poll) } end |
Instance Attribute Details
#polls ⇒ Object
Returns the value of attribute polls.
480 481 482 |
# File 'lib/tweetkit/response.rb', line 480 def polls @polls end |