Class: Beatport::Catalog::Label
- Inherits:
-
Item
- Object
- OpenStruct
- Item
- Beatport::Catalog::Label
show all
- Defined in:
- lib/beatport/catalog/label.rb
Class Method Summary
collapse
Instance 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(options = {}) ⇒ Object
12
13
14
|
# File 'lib/beatport/catalog/label.rb', line 12
def all(options = {})
Client.retrieve 'labels', Label, options
end
|
.featured(*args) ⇒ Object
16
17
18
|
# File 'lib/beatport/catalog/label.rb', line 16
def featured(*args)
Client.retrieve 'featured/labels', Label, *args
end
|
.find(*args) ⇒ Object
20
21
22
|
# File 'lib/beatport/catalog/label.rb', line 20
def find(*args)
Client.retrieve 'labels', Label, *args
end
|
.name_facet ⇒ Object
24
25
26
|
# File 'lib/beatport/catalog/label.rb', line 24
def name_facet
:label_name
end
|
Instance Method Details
#releases(options) ⇒ Object
29
30
31
32
|
# File 'lib/beatport/catalog/label.rb', line 29
def releases(options)
options[:label_id] = id
Release.all(options)
end
|