Module: Spree::API::Client::Countries

Included in:
Spree::API::Client
Defined in:
lib/spree-api-client/countries.rb

Instance Method Summary collapse

Instance Method Details

#countries(options = {}) ⇒ Object



5
6
7
# File 'lib/spree-api-client/countries.rb', line 5

def countries(options={})
  get("countries", options)['countries']
end

#country(id, options = {}) ⇒ Object



9
10
11
# File 'lib/spree-api-client/countries.rb', line 9

def country(id, options={})
  get("countries/#{id}", options)
end