Class: Foursquare::Merchant::Model

Inherits:
Hashie::Trash
  • Object
show all
Includes:
Requests, HTTParty
Defined in:
lib/foursquare/model.rb

Direct Known Subclasses

Campaign, Special, Venue, VenueGroup

Constant Summary

Constants included from Requests

Requests::API, Requests::OAUTH

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Requests

#get, #post

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

#consumerObject (readonly)

Returns the value of attribute consumer.



11
12
13
# File 'lib/foursquare/model.rb', line 11

def consumer
  @consumer
end