Module: CityGrid::API::Base

Included in:
Content::Offers, Content::Places::Detail, Content::Places::Search, Content::Reviews
Defined in:
lib/citygrid/api/base.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/citygrid/api/base.rb', line 7

def included base
  base.instance_eval do
    include HTTParty
    extend ClassMethods
    base_uri "api.citygridmedia.com/content"
    format :json
  end
end