Module: ProductHunt::Entity
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
9 10 11 |
# File 'lib/product_hunt/entity.rb', line 9 def [](key) @attributes[key] end |
#initialize(attributes, client) ⇒ Object
4 5 6 7 |
# File 'lib/product_hunt/entity.rb', line 4 def initialize(attributes, client) @attributes = attributes @client = client end |