Class: Beatport::Catalog::Slideshow
- Inherits:
-
Item
- Object
- OpenStruct
- Item
- Beatport::Catalog::Slideshow
show all
- Defined in:
- lib/beatport/catalog/slideshow.rb
Instance Attribute Summary collapse
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
Instance Attribute Details
#genre_id ⇒ Object
Returns the value of attribute genre_id.
4
5
6
|
# File 'lib/beatport/catalog/slideshow.rb', line 4
def genre_id
@genre_id
end
|
Class Method Details
.find(id = nil) ⇒ Object
10
11
12
13
14
|
# File 'lib/beatport/catalog/slideshow.rb', line 10
def self.find(id = nil)
obj = Slideshow.new
obj.genre_id = id
obj
end
|
Instance Method Details
#feature ⇒ Object
20
21
22
|
# File 'lib/beatport/catalog/slideshow.rb', line 20
def feature
@feature ||= Slide.feature(:genre_id => genre_id)
end
|
16
17
18
|
# File 'lib/beatport/catalog/slideshow.rb', line 16
def
||= Slide.(:genre_id => genre_id)
end
|
#small ⇒ Object
24
25
26
|
# File 'lib/beatport/catalog/slideshow.rb', line 24
def small
@small ||= Slide.small(:genre_id => genre_id)
end
|