Class: AppfiguresClient::Endpoints::Sales

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/appfigures_client/endpoints/sales.rb

Instance Method Summary collapse

Methods inherited from Endpoint

#initialize

Constructor Details

This class inherits a constructor from AppfiguresClient::Endpoints::Endpoint

Instance Method Details

#search(options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/appfigures_client/endpoints/sales.rb', line 6

def search(options={})
  path = @routes[:default]

  if options[:map].present?
    path = path + options[:map]
  end

  @request.make path, options[:options]

end

#search_by_regions(options = {}) ⇒ Object



17
18
19
20
21
# File 'lib/appfigures_client/endpoints/sales.rb', line 17

def search_by_regions(options={})
  path = @routes[:regions]

  @request.make path, options
end