Class: FactoryGirl::Declaration::Association
- Inherits:
-
FactoryGirl::Declaration
- Object
- FactoryGirl::Declaration
- FactoryGirl::Declaration::Association
- Defined in:
- lib/factory_girl/declaration/association.rb
Instance Attribute Summary
Attributes inherited from FactoryGirl::Declaration
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, options) ⇒ Association
constructor
A new instance of Association.
Methods inherited from FactoryGirl::Declaration
Constructor Details
#initialize(name, options) ⇒ Association
Returns a new instance of Association.
4 5 6 7 |
# File 'lib/factory_girl/declaration/association.rb', line 4 def initialize(name, ) super(name, false) @options = end |
Instance Method Details
#==(other) ⇒ Object
9 10 11 12 |
# File 'lib/factory_girl/declaration/association.rb', line 9 def ==(other) name == other.name && == other. end |