Class: Tweetkit::Response::Tweets::Expansions::Polls::Poll::Options::Option
- Inherits:
-
Object
- Object
- Tweetkit::Response::Tweets::Expansions::Polls::Poll::Options::Option
- Defined in:
- lib/tweetkit/response.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#position ⇒ Object
Returns the value of attribute position.
-
#votes ⇒ Object
Returns the value of attribute votes.
Instance Method Summary collapse
-
#initialize(option) ⇒ Option
constructor
A new instance of Option.
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
#label ⇒ Object
Returns the value of attribute label.
504 505 506 |
# File 'lib/tweetkit/response.rb', line 504 def label @label end |
#position ⇒ Object
Returns the value of attribute position.
504 505 506 |
# File 'lib/tweetkit/response.rb', line 504 def position @position end |
#votes ⇒ Object
Returns the value of attribute votes.
504 505 506 |
# File 'lib/tweetkit/response.rb', line 504 def votes @votes end |