Class: Beatport::Catalog::DynamicImages
- Inherits:
-
Object
- Object
- Beatport::Catalog::DynamicImages
- Defined in:
- lib/beatport/catalog/dynamic_images.rb
Instance Attribute Summary collapse
-
#banner ⇒ Object
readonly
Returns the value of attribute banner.
-
#main ⇒ Object
readonly
Returns the value of attribute main.
-
#waveform ⇒ Object
readonly
Returns the value of attribute waveform.
Instance Method Summary collapse
-
#initialize(images) ⇒ DynamicImages
constructor
A new instance of DynamicImages.
Constructor Details
#initialize(images) ⇒ DynamicImages
Returns a new instance of DynamicImages.
6 7 8 9 10 |
# File 'lib/beatport/catalog/dynamic_images.rb', line 6 def initialize(images) images.each do |format, data| instance_variable_set(:"@#{format}", DynamicImage.new(data)) end end |
Instance Attribute Details
#banner ⇒ Object (readonly)
Returns the value of attribute banner.
4 5 6 |
# File 'lib/beatport/catalog/dynamic_images.rb', line 4 def @banner end |
#main ⇒ Object (readonly)
Returns the value of attribute main.
4 5 6 |
# File 'lib/beatport/catalog/dynamic_images.rb', line 4 def main @main end |
#waveform ⇒ Object (readonly)
Returns the value of attribute waveform.
4 5 6 |
# File 'lib/beatport/catalog/dynamic_images.rb', line 4 def waveform @waveform end |