Method: Fotolia::Color#initialize
- Defined in:
- lib/fotolia/color.rb
#initialize(attributes) ⇒ Color
Returns a new instance of Color.
9 10 11 12 |
# File 'lib/fotolia/color.rb', line 9 def initialize(attributes) @id = attributes[:id] @name = attributes[:name] end |