Module: SageoneSdk::Client::Countries

Included in:
SageoneSdk::Client
Defined in:
lib/sageone_sdk/client/countries.rb

Overview

Represents the countries available to select in Sage One.

Instance Method Summary collapse

Instance Method Details

#countries(options = {}) ⇒ object

Returns all countries.

Returns:

  • (object)

    Returns all countries.



8
9
10
# File 'lib/sageone_sdk/client/countries.rb', line 8

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

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

Returns the country with the given id.

Returns:

  • (object)

    Returns the country with the given id.



13
14
15
# File 'lib/sageone_sdk/client/countries.rb', line 13

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