Class: ProductHunt::API::Vote
- Inherits:
-
Object
- Object
- ProductHunt::API::Vote
- Defined in:
- lib/product_hunt/api.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(api, attributes) ⇒ Vote
constructor
A new instance of Vote.
Constructor Details
#initialize(api, attributes) ⇒ Vote
Returns a new instance of Vote.
65 66 67 |
# File 'lib/product_hunt/api.rb', line 65 def initialize(api, attributes) @attributes = attributes end |
Instance Method Details
#[](key) ⇒ Object
69 70 71 |
# File 'lib/product_hunt/api.rb', line 69 def [](key) @attributes[key] end |