Class: Yelp::V2::Business::Request::Id

Inherits:
Request show all
Defined in:
lib/yelpster/v2/business/request/id.rb

Instance Attribute Summary collapse

Attributes inherited from Request

#consumer_key, #consumer_secret, #response_format, #token, #token_secret

Instance Method Summary collapse

Methods inherited from Request

#initialize, #pull_results, #to_yelp_params

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from Yelp::V2::Request

Instance Attribute Details

#yelp_business_idObject (readonly)

the alphanumeric id of the business to search for as provided by yelp, eg: 'pjb2WMwa0AfK3L-dWimO8w'


10
11
12
# File 'lib/yelpster/v2/business/request/id.rb', line 10

def yelp_business_id
  @yelp_business_id
end

Instance Method Details

#base_urlObject


12
13
14
# File 'lib/yelpster/v2/business/request/id.rb', line 12

def base_url
  'http://api.yelp.com/v2/business/'+yelp_business_id
end