Class: Beatport::Catalog::Label

Inherits:
Item
  • Object
show all
Includes:
Support::Url
Defined in:
lib/beatport/catalog/label.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Support::Url

#url

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(options = {}) ⇒ Object



14
15
16
# File 'lib/beatport/catalog/label.rb', line 14

def all(options = {})
  Client.retrieve 'labels', Label, options
end


18
19
20
# File 'lib/beatport/catalog/label.rb', line 18

def featured(*args)
  Client.retrieve 'featured/labels', Label, *args
end

.find(*args) ⇒ Object



22
23
24
# File 'lib/beatport/catalog/label.rb', line 22

def find(*args)
  Client.retrieve 'labels', Label, *args
end

.name_facetObject



26
27
28
# File 'lib/beatport/catalog/label.rb', line 26

def name_facet
  :label_name
end

Instance Method Details

#releases(options) ⇒ Object



31
32
33
34
# File 'lib/beatport/catalog/label.rb', line 31

def releases(options)
  options[:label_id] = id
  Release.all(options)
end