Class: WsdlMapperTesting::FakeD10r

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdl_mapper_testing/fake_d10r.rb

Instance Method Summary (collapse)

Constructor Details

- (FakeD10r) initialize

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

- (Object) from_xml(xml)



11
12
13
# File 'lib/wsdl_mapper_testing/fake_d10r.rb', line 11

def from_xml(xml)
  @outputs.fetch xml
end

- (Object) output_for_xml(xml, output)



7
8
9
# File 'lib/wsdl_mapper_testing/fake_d10r.rb', line 7

def output_for_xml(xml, output)
  @outputs[xml] = output
end