Sha256: 19af39ebaf11878b38452d06807fb8d2206322bde15bb34a4af4569feefaed22

Contents?: true

Size: 355 Bytes

Versions: 14

Compression:

Stored size: 355 Bytes

Contents

module Beatport
  module Catalog
    class Country < Item
      has_one :currency, Currency
      has_many :states, State
      
      def self.all
        Client.retrieve 'countries', Country
      end
      
      def self.find(code)
        Client.retrieve 'countries', Country, :key => code, :string_key_type => :code_short
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
beatport-0.4.0 lib/beatport/catalog/country.rb
beatport-0.3.0 lib/beatport/catalog/country.rb
beatport-0.2.3 lib/beatport/catalog/country.rb
beatport-0.2.2 lib/beatport/catalog/country.rb
beatport-0.2.1 lib/beatport/catalog/country.rb
beatport-0.2.0 lib/beatport/catalog/country.rb
beatport-0.1.10 lib/beatport/catalog/country.rb
beatport-0.1.9 lib/beatport/catalog/country.rb
beatport-0.1.8 lib/beatport/catalog/country.rb
beatport-0.1.7 lib/beatport/catalog/country.rb
beatport-0.1.6 lib/beatport/catalog/country.rb
beatport-0.1.5 lib/beatport/catalog/country.rb
beatport-0.1.3 lib/beatport/catalog/country.rb
beatport-0.1.2 lib/beatport/catalog/country.rb