Class: Beatport::Catalog::Chart
- Inherits:
-
Item
- Object
- OpenStruct
- Item
- Beatport::Catalog::Chart
show all
- Defined in:
- lib/beatport/catalog/chart.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
14
15
16
|
# File 'lib/beatport/catalog/chart.rb', line 14
def self.all(options = {})
Client.retrieve 'charts', Chart, options
end
|
.featured(*args) ⇒ Object
22
23
24
|
# File 'lib/beatport/catalog/chart.rb', line 22
def self.featured(*args)
Client.retrieve 'featured/charts', Chart, *args
end
|
.find(*keys) ⇒ Object
10
11
12
|
# File 'lib/beatport/catalog/chart.rb', line 10
def self.find(*keys)
Client.retrieve 'charts', Chart, *keys
end
|
.overview ⇒ Object
18
19
20
|
# File 'lib/beatport/catalog/chart.rb', line 18
def self.overview
ChartOverview.get
end
|
Instance Method Details
#tracks(options = {}) ⇒ Object
26
27
28
29
|
# File 'lib/beatport/catalog/chart.rb', line 26
def tracks(options = {})
options[:chart_id] = id
Track.all(options)
end
|