Class: Xommelier::XmlStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/xommelier/factory_girl.rb

Instance Method Summary collapse

Constructor Details

#initializeXmlStrategy

Returns a new instance of XmlStrategy.



14
15
16
# File 'lib/xommelier/factory_girl.rb', line 14

def initialize
  @strategy = FactoryGirl.strategy_by_name(:build).new
end

Instance Method Details

#result(evaluation) ⇒ Object



18
19
20
# File 'lib/xommelier/factory_girl.rb', line 18

def result(evaluation)
  @strategy.result(evaluation).to_xml
end