Class: FactoryGirl::Attribute::Implicit

Inherits:
FactoryGirl::Attribute show all
Defined in:
lib/factory_girl/attribute/implicit.rb

Instance Attribute Summary

Attributes inherited from FactoryGirl::Attribute

#name

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Implicit

Returns a new instance of Implicit.



5
6
7
# File 'lib/factory_girl/attribute/implicit.rb', line 5

def initialize(name)
  super(name)
end

Instance Method Details

#add_to(proxy) ⇒ Object



9
10
11
# File 'lib/factory_girl/attribute/implicit.rb', line 9

def add_to(proxy)
  implementation.add_to(proxy)
end

#association?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/factory_girl/attribute/implicit.rb', line 13

def association?
  implementation.association?
end

#factoryObject



17
18
19
# File 'lib/factory_girl/attribute/implicit.rb', line 17

def factory
  name
end