Class: Flickry::Sizes

Inherits:
Base show all
Defined in:
lib/flickry/sizes.rb

Instance Method Summary collapse

Methods inherited from Base

#attributes

Methods inherited from SuperStruct

#[], #[]=, #each, #each_pair, #members

Constructor Details

#initialize(szs) ⇒ Sizes

Returns a new instance of Sizes.



3
4
5
6
7
8
# File 'lib/flickry/sizes.rb', line 3

def initialize(szs)
  super(nil)
  szs.each do |sz|
    self[sz.label.downcase.to_sym] = Flickry::Size.new(sz)
  end
end