Class: Xommelier::XmlStrategy
- Inherits:
-
Object
- Object
- Xommelier::XmlStrategy
- Defined in:
- lib/xommelier/factory_girl.rb
Instance Method Summary collapse
-
#initialize ⇒ XmlStrategy
constructor
A new instance of XmlStrategy.
- #result(evaluation) ⇒ Object
Constructor Details
#initialize ⇒ XmlStrategy
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 |