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

Version Path
beatport-0.4.0 lib/beatport/catalog/slideshow.rb
beatport-0.3.0 lib/beatport/catalog/slideshow.rb
beatport-0.2.3 lib/beatport/catalog/slideshow.rb
beatport-0.2.2 lib/beatport/catalog/slideshow.rb
beatport-0.2.1 lib/beatport/catalog/slideshow.rb
beatport-0.2.0 lib/beatport/catalog/slideshow.rb
beatport-0.1.10 lib/beatport/catalog/slideshow.rb
beatport-0.1.9 lib/beatport/catalog/slideshow.rb
beatport-0.1.8 lib/beatport/catalog/slideshow.rb
beatport-0.1.7 lib/beatport/catalog/slideshow.rb
beatport-0.1.6 lib/beatport/catalog/slideshow.rb
beatport-0.1.5 lib/beatport/catalog/slideshow.rb
beatport-0.1.3 lib/beatport/catalog/slideshow.rb
beatport-0.1.2 lib/beatport/catalog/slideshow.rb
beatport-0.1.1 lib/beatport/catalog/slideshow.rb