Class: WsdlMapperTesting::FakeOperation
- Inherits:
-
Object
- Object
- WsdlMapperTesting::FakeOperation
- Defined in:
- lib/wsdl_mapper_testing/fake_operation.rb
Instance Attribute Summary collapse
-
#input_d10r ⇒ Object
Returns the value of attribute input_d10r.
-
#input_s8r ⇒ Object
Returns the value of attribute input_s8r.
-
#output_d10r ⇒ Object
Returns the value of attribute output_d10r.
-
#output_d8r ⇒ Object
Returns the value of attribute output_d8r.
Instance Method Summary collapse
-
#initialize ⇒ FakeOperation
constructor
A new instance of FakeOperation.
- #input_for_body(body, input) ⇒ Object
- #new_input(_header: nil, body: nil) ⇒ Object
- #new_output(_header: nil, body: nil) ⇒ Object
- #output_for_body(body, output) ⇒ Object
Constructor Details
#initialize ⇒ FakeOperation
Returns a new instance of FakeOperation.
8 9 10 11 12 13 14 15 |
# File 'lib/wsdl_mapper_testing/fake_operation.rb', line 8 def initialize @inputs = {} @outputs = {} @input_s8r = FakeS8r.new @output_s8r = FakeS8r.new @input_d10r = FakeD10r.new @output_d10r = FakeD10r.new end |
Instance Attribute Details
#input_d10r ⇒ Object
Returns the value of attribute input_d10r.
6 7 8 |
# File 'lib/wsdl_mapper_testing/fake_operation.rb', line 6 def input_d10r @input_d10r end |
#input_s8r ⇒ Object
Returns the value of attribute input_s8r.
6 7 8 |
# File 'lib/wsdl_mapper_testing/fake_operation.rb', line 6 def input_s8r @input_s8r end |
#output_d10r ⇒ Object
Returns the value of attribute output_d10r.
6 7 8 |
# File 'lib/wsdl_mapper_testing/fake_operation.rb', line 6 def output_d10r @output_d10r end |
#output_d8r ⇒ Object
Returns the value of attribute output_d8r.
6 7 8 |
# File 'lib/wsdl_mapper_testing/fake_operation.rb', line 6 def output_d8r @output_d8r end |
Instance Method Details
#input_for_body(body, input) ⇒ Object
17 18 19 |
# File 'lib/wsdl_mapper_testing/fake_operation.rb', line 17 def input_for_body(body, input) @inputs[body] = input end |
#new_input(_header: nil, body: nil) ⇒ Object
25 26 27 |
# File 'lib/wsdl_mapper_testing/fake_operation.rb', line 25 def new_input(_header: nil, body: nil) @inputs.fetch body end |
#new_output(_header: nil, body: nil) ⇒ Object
29 30 31 |
# File 'lib/wsdl_mapper_testing/fake_operation.rb', line 29 def new_output(_header: nil, body: nil) @outputs.fetch body end |
#output_for_body(body, output) ⇒ Object
21 22 23 |
# File 'lib/wsdl_mapper_testing/fake_operation.rb', line 21 def output_for_body(body, output) @outputs[body] = output end |