Class: Tweetkit::Response::Tweets::Expansions::Polls

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

Defined Under Namespace

Classes: Poll

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pollsObject

Returns the value of attribute polls.



480
481
482
# File 'lib/tweetkit/response.rb', line 480

def polls
  @polls
end