Class: FactoryBot::Strategy::AttributesFor

Inherits:
Object
  • Object
show all
Defined in:
lib/factory_bot/strategy/attributes_for.rb

Instance Method Summary collapse

Instance Method Details

#association(runner) ⇒ Object



4
5
6
# File 'lib/factory_bot/strategy/attributes_for.rb', line 4

def association(runner)
  runner.run(:null)
end

#result(evaluation) ⇒ Object



8
9
10
# File 'lib/factory_bot/strategy/attributes_for.rb', line 8

def result(evaluation)
  evaluation.hash
end

#to_symObject



12
13
14
# File 'lib/factory_bot/strategy/attributes_for.rb', line 12

def to_sym
  :attributes_for
end