Class: Beatport::Catalog::Images

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(images) ⇒ Images

Returns a new instance of Images.



6
7
8
9
10
# File 'lib/beatport/catalog/images.rb', line 6

def initialize(images)
  images.each do |format, data|
    instance_variable_set(:"@#{format}", Image.new(data))
  end
end

Instance Attribute Details

Returns the value of attribute banner.



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

def banner
  @banner
end

#largeObject (readonly)

Returns the value of attribute large.



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

def large
  @large
end

#mediumObject (readonly)

Returns the value of attribute medium.



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

def medium
  @medium
end

#smallObject (readonly)

Returns the value of attribute small.



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

def small
  @small
end

#waveformObject (readonly)

Returns the value of attribute waveform.



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

def waveform
  @waveform
end