Module: ViglinkApi::Country

Included in:
Client
Defined in:
lib/viglink_api/country.rb

Instance Method Summary collapse

Instance Method Details

#find_countriesHashie::Mash

Retrieve the list of supported Countries

Returns:

  • (Hashie::Mash)

    Country



10
11
12
13
14
15
# File 'lib/viglink_api/country.rb', line 10

def find_countries
  options = {}
  options[:key] = @api_key
  countries_response = get('/vigcatalog/countries.xml', options)
  countries_response.response if countries_response.response
end