Class: WsdlMapperTesting::FakeD10r
- Inherits:
-
Object
- Object
- WsdlMapperTesting::FakeD10r
- Defined in:
- lib/wsdl_mapper_testing/fake_d10r.rb
Instance Method Summary collapse
- #from_xml(xml) ⇒ Object
-
#initialize ⇒ FakeD10r
constructor
A new instance of FakeD10r.
- #output_for_xml(xml, output) ⇒ Object
Constructor Details
#initialize ⇒ FakeD10r
Returns a new instance of FakeD10r.
3 4 5 |
# File 'lib/wsdl_mapper_testing/fake_d10r.rb', line 3 def initialize @outputs = {} end |
Instance Method Details
#from_xml(xml) ⇒ Object
11 12 13 |
# File 'lib/wsdl_mapper_testing/fake_d10r.rb', line 11 def from_xml(xml) @outputs.fetch xml end |
#output_for_xml(xml, output) ⇒ Object
7 8 9 |
# File 'lib/wsdl_mapper_testing/fake_d10r.rb', line 7 def output_for_xml(xml, output) @outputs[xml] = output end |