Class: Beatport::Catalog::Country
- Defined in:
- lib/beatport/catalog/country.rb
Class Method Summary collapse
Methods inherited from Item
#[], #associate, associations, find_by_name, has_many, has_one, #id, #initialize, lazy_accessor, #type
Constructor Details
This class inherits a constructor from Beatport::Item
Class Method Details
.all ⇒ Object
7 8 9 |
# File 'lib/beatport/catalog/country.rb', line 7 def self.all Client.retrieve 'countries', Country end |
.find(code) ⇒ Object
11 12 13 |
# File 'lib/beatport/catalog/country.rb', line 11 def self.find(code) Client.retrieve 'countries', Country, :key => code, :string_key_type => :code_short end |