Class: WsdlMapperTesting::Middlewares::FakeMessageFactory
- Inherits:
-
Object
- Object
- WsdlMapperTesting::Middlewares::FakeMessageFactory
- Defined in:
- lib/wsdl_mapper_testing/middlewares/fake_message_factory.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #call(operation, body, _args) ⇒ Object
-
#initialize(url = nil, action = nil, header = nil) ⇒ FakeMessageFactory
constructor
A new instance of FakeMessageFactory.
Constructor Details
#initialize(url = nil, action = nil, header = nil) ⇒ FakeMessageFactory
Returns a new instance of FakeMessageFactory.
9 10 11 12 13 |
# File 'lib/wsdl_mapper_testing/middlewares/fake_message_factory.rb', line 9 def initialize(url = nil, action = nil, header =nil) @url = url @action = action @header = header end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
7 8 9 |
# File 'lib/wsdl_mapper_testing/middlewares/fake_message_factory.rb', line 7 def action @action end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/wsdl_mapper_testing/middlewares/fake_message_factory.rb', line 7 def url @url end |
Instance Method Details
#call(operation, body, _args) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/wsdl_mapper_testing/middlewares/fake_message_factory.rb', line 15 def call(operation, body, _args) envelope = WsdlMapper::SvcDesc::Envelope.new header: @header, body: body = WsdlMapper::Runtime::Message.new @url, @action, envelope [operation, ] end |