Class: Beatport::Catalog::AudioFormat
- Defined in:
- lib/beatport/catalog/audio_format.rb
Class Method Summary collapse
- .all ⇒ Object
-
.find(key) ⇒ Object
Returns the audio format with the name given.
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
10 11 12 |
# File 'lib/beatport/catalog/audio_format.rb', line 10 def self.all Client.retrieve 'audio-formats', AudioFormat end |
.find(key) ⇒ Object
Returns the audio format with the name given
6 7 8 |
# File 'lib/beatport/catalog/audio_format.rb', line 6 def self.find(key) Client.retrieve 'audio-formats', AudioFormat, :key => key end |