Class: Fabrique::Test::Fixtures::Constructors::ClassWithPropertiesHashConstructor
- Inherits:
-
ClassWithProperties
- Object
- ClassWithProperties
- Fabrique::Test::Fixtures::Constructors::ClassWithPropertiesHashConstructor
- 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
-
#initialize(properties) ⇒ ClassWithPropertiesHashConstructor
constructor
A new instance of ClassWithPropertiesHashConstructor.
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 |