Class: Factory::Attribute::Static
- Inherits:
-
Factory::Attribute
- Object
- Factory::Attribute
- Factory::Attribute::Static
- Defined in:
- lib/factory_girl/attribute/static.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Factory::Attribute
Instance Method Summary collapse
- #add_to(proxy) ⇒ Object
-
#initialize(name, value) ⇒ Static
constructor
A new instance of Static.
Constructor Details
#initialize(name, value) ⇒ Static
6 7 8 9 |
# File 'lib/factory_girl/attribute/static.rb', line 6 def initialize(name, value) super(name) @value = value end |
Instance Method Details
#add_to(proxy) ⇒ Object
11 12 13 |
# File 'lib/factory_girl/attribute/static.rb', line 11 def add_to(proxy) proxy.set(name, @value) end |