Class: Foursquare::Merchant::Model
- Inherits:
-
Hashie::Trash
- Object
- Hashie::Trash
- Foursquare::Merchant::Model
- Includes:
- Requests, HTTParty
- Defined in:
- lib/foursquare/model.rb
Direct Known Subclasses
Constant Summary
Constants included from Requests
Requests::API, Requests::OAUTH
Instance Attribute Summary collapse
-
#consumer ⇒ Object
readonly
Returns the value of attribute consumer.
Instance Method Summary collapse
-
#initialize(hash, consumer) ⇒ Model
constructor
A new instance of Model.
Methods included from Requests
Constructor Details
#initialize(hash, consumer) ⇒ Model
Returns a new instance of Model.
12 13 14 15 |
# File 'lib/foursquare/model.rb', line 12 def initialize(hash, consumer) @consumer = consumer super(hash) end |
Instance Attribute Details
#consumer ⇒ Object (readonly)
Returns the value of attribute consumer.
11 12 13 |
# File 'lib/foursquare/model.rb', line 11 def consumer @consumer end |