Class: Fabrique::Test::Fixtures::Constructors::ClassWithPropertiesHashConstructor

Inherits:
ClassWithProperties
  • Object
show all
Defined in:
lib/fabrique/test/fixtures/constructors.rb

Constant Summary

Constants inherited from ClassWithProperties

Fabrique::Test::Fixtures::Constructors::ClassWithProperties::DEFAULT_COLOR, Fabrique::Test::Fixtures::Constructors::ClassWithProperties::DEFAULT_SHAPE, Fabrique::Test::Fixtures::Constructors::ClassWithProperties::DEFAULT_SIZE

Instance Attribute Summary

Attributes inherited from ClassWithProperties

#color, #object, #shape, #size

Instance Method Summary collapse

Constructor Details

#initialize(properties) ⇒ ClassWithPropertiesHashConstructor

Returns a new instance of ClassWithPropertiesHashConstructor.



42
43
44
# File 'lib/fabrique/test/fixtures/constructors.rb', line 42

def initialize(properties)
  @size, @color, @shape = properties[:size], properties[:color], properties[:shape]
end