Class: Alchemrest::FactoryBot::AlchemrestStrategy

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

Instance Method Summary collapse

Instance Method Details

#association(runner) ⇒ Object



37
38
39
# File 'lib/alchemrest/factory_bot.rb', line 37

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

#result(evaluation) ⇒ Object



41
42
43
# File 'lib/alchemrest/factory_bot.rb', line 41

def result(evaluation)
  evaluation.object
end

#to_symObject



45
46
47
# File 'lib/alchemrest/factory_bot.rb', line 45

def to_sym
  :alchemrest_record_for
end