Sha256: 6988d60a2485de40db61652ecca2aa06aee732647cf41a52d4de181bc662c544
Contents?: true
Size: 574 Bytes
Versions: 15
Compression:
Stored size: 574 Bytes
Contents
module Beatport module Catalog class Slideshow < Item attr_accessor :genre_id has_many :header, Slide has_many :feature, Slide has_many :small, Slide def self.find(id = nil) obj = Slideshow.new obj.genre_id = id obj end def header @header ||= Slide.header(:genre_id => genre_id) end def feature @feature ||= Slide.feature(:genre_id => genre_id) end def small @small ||= Slide.small(:genre_id => genre_id) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems