Sha256: a98ecf269824e3a9b99054462dba71fcf3fbde9bf1c75ae03c7d0b7d0a903f92
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
module Beatport module Catalog class Release < Item has_many :artists, Artist has_one :audio_format_fee, AudioFormatFee has_many :genres, Genre has_one :images, Images has_one :label, Label has_one :price, Price has_one :recommendations, Recommendations has_many :tracks, Track has_one :tracks_price, Price def discount tracks_price - price end def self.find(id) Client.retrieve('releases/detail', Release, :id => id) end def self.all(*args) Client.retrieve('releases', Release, *args) end def self.featured(*args) Client.retrieve('featured/releases', Release, *args) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beatport-0.1.1 | lib/beatport/catalog/release.rb |