class FactoryBot::Declaration::Static
@api private
Attributes
value[R]
Public Class Methods
new(name, value, ignored = false)
click to toggle source
Calls superclass method
FactoryBot::Declaration.new
# File lib/factory_bot/declaration/static.rb, line 5 def initialize(name, value, ignored = false) super(name, ignored) @value = value end
Public Instance Methods
==(other)
click to toggle source
# File lib/factory_bot/declaration/static.rb, line 10 def ==(other) name == other.name && value == other.value && ignored == other.ignored end
Private Instance Methods
build()
click to toggle source
# File lib/factory_bot/declaration/static.rb, line 21 def build [Attribute::Static.new(name, @value, @ignored)] end