Sha256: 25db1181ac27cd47e993d2ab30abafbc2f66c89c0b55d84b8017c5bc6d3bca90

Contents?: true

Size: 431 Bytes

Versions: 2

Compression:

Stored size: 431 Bytes

Contents

module Magento
  # http://www.magentocommerce.com/wiki/doc/webservices-api/api/directory_country
  class Country < Base
    class << self
      # directory_country.list
      # Retrieve list of countries.
      # 
      # Return: array.
      def list
        results = commit("list", nil)
        results.collect do |result|
          new(result)
        end
      end
      
      def all
        list
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
magentor-0.1.2 lib/magento/country.rb
magentor-0.1.0 lib/magento/country.rb