Class: Beatport::Catalog::AudioFormat

Inherits:
Item
  • Object
show all
Defined in:
lib/beatport/catalog/audio_format.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

.allObject



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