Class: Beatport::Catalog::DynamicImages

Inherits:
Object
  • Object
show all
Defined in:
lib/beatport/catalog/dynamic_images.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns the value of attribute banner.



4
5
6
# File 'lib/beatport/catalog/dynamic_images.rb', line 4

def banner
  @banner
end

#mainObject (readonly)

Returns the value of attribute main.



4
5
6
# File 'lib/beatport/catalog/dynamic_images.rb', line 4

def main
  @main
end

#waveformObject (readonly)

Returns the value of attribute waveform.



4
5
6
# File 'lib/beatport/catalog/dynamic_images.rb', line 4

def waveform
  @waveform
end