Class: ActiveFactory::CreationContext
- Inherits:
-
Struct
- Object
- Struct
- ActiveFactory::CreationContext
- Defined in:
- lib/active_factory.rb
Overview
defines methods that can be used in a model definition model - the model under construction index - index of the model in the factory context - spec context where the models {} block was evaluated
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#index ⇒ Object
(also: #i)
Returns the value of attribute index.
-
#model ⇒ Object
Returns the value of attribute model.
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
99 100 101 |
# File 'lib/active_factory.rb', line 99 def context @context end |
#index ⇒ Object Also known as: i
Returns the value of attribute index
99 100 101 |
# File 'lib/active_factory.rb', line 99 def index @index end |
#model ⇒ Object
Returns the value of attribute model
99 100 101 |
# File 'lib/active_factory.rb', line 99 def model @model end |