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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(option) ⇒ Option

Returns a new instance of Option.



506
507
508
509
510
# File 'lib/tweetkit/response.rb', line 506

def initialize(option)
  @label = option['label']
  @position = option['position']
  @votes = option['votes']
end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



504
505
506
# File 'lib/tweetkit/response.rb', line 504

def label
  @label
end

#positionObject

Returns the value of attribute position.



504
505
506
# File 'lib/tweetkit/response.rb', line 504

def position
  @position
end

#votesObject

Returns the value of attribute votes.



504
505
506
# File 'lib/tweetkit/response.rb', line 504

def votes
  @votes
end