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)
-
- (Object) action
Returns the value of attribute action.
-
- (Object) url
Returns the value of attribute url.
Instance Method Summary (collapse)
- - (Object) call(operation, body, args)
-
- (FakeMessageFactory) initialize(url = nil, action = nil, header = nil)
constructor
A new instance of FakeMessageFactory.
Constructor Details
- (FakeMessageFactory) initialize(url = nil, action = nil, header = nil)
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
- (Object) action
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 |
- (Object) url
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
- (Object) call(operation, body, args)
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 |