Sha256: 5bca6ba240cade9629beb4788223771e6e68e2a19200ec2f900cdc580d284d83

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 Bytes

Contents

module Beatport
  module Catalog
    class Images
      attr_reader :small, :medium, :large, :waveform, :banner

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
beatport-0.4.0 lib/beatport/catalog/images.rb
beatport-0.3.0 lib/beatport/catalog/images.rb
beatport-0.2.3 lib/beatport/catalog/images.rb
beatport-0.2.2 lib/beatport/catalog/images.rb
beatport-0.2.1 lib/beatport/catalog/images.rb