Class: Factory::Attribute::Static

Inherits:
Factory::Attribute show all
Defined in:
lib/factory_girl/attribute/static.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Factory::Attribute

#name

Instance Method Summary collapse

Constructor Details

#initialize(name, value) ⇒ Static

Returns a new instance of 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