Sha256: fc21326d57f56de91e937e65f08d5ebc2e918a86ca24054d28b0e4a9157d2875
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 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, :code_short => code).first end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beatport-0.1.1 | lib/beatport/catalog/country.rb |