Sha256: f7e4da8ef1b7e6eff52d2c08bf39112f25f39c8e0dfd70a9c73827b2c33cd00b
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
#TODO deprecated in latest api version? module Beatport module Catalog class Feature < Item # associated this manually since we don't know the type of the items by default attr_reader :items def initialize(data = {}) item_klass = Inflector.constantize("Beatport::Catalog::#{data['type']}") associate(data, 'items', true, item_klass) super end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beatport-0.1.1 | lib/beatport/catalog/feature.rb |