Class: ProductHunt::API::Vote

Inherits:
Object
  • Object
show all
Defined in:
lib/product_hunt/api.rb

Instance Method Summary collapse

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