Class: Sekken::WSDL::Operation
- Inherits:
-
Object
- Object
- Sekken::WSDL::Operation
- Defined in:
- lib/sekken/wsdl/operation.rb
Instance Attribute Summary collapse
-
#binding_operation ⇒ Object
readonly
Returns the value of attribute binding_operation.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#port_type_operation ⇒ Object
readonly
Returns the value of attribute port_type_operation.
Instance Method Summary collapse
-
#initialize(name, endpoint, binding_operation, port_type_operation, wsdl) ⇒ Operation
constructor
A new instance of Operation.
- #input ⇒ Object
- #input_style ⇒ Object
- #output ⇒ Object
- #output_style ⇒ Object
- #soap_action ⇒ Object
- #soap_version ⇒ Object
Constructor Details
#initialize(name, endpoint, binding_operation, port_type_operation, wsdl) ⇒ Operation
Returns a new instance of Operation.
8 9 10 11 12 13 14 |
# File 'lib/sekken/wsdl/operation.rb', line 8 def initialize(name, endpoint, binding_operation, port_type_operation, wsdl) @name = name @endpoint = endpoint @binding_operation = binding_operation @port_type_operation = port_type_operation @wsdl = wsdl end |
Instance Attribute Details
#binding_operation ⇒ Object (readonly)
Returns the value of attribute binding_operation.
16 17 18 |
# File 'lib/sekken/wsdl/operation.rb', line 16 def binding_operation @binding_operation end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
16 17 18 |
# File 'lib/sekken/wsdl/operation.rb', line 16 def endpoint @endpoint end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
16 17 18 |
# File 'lib/sekken/wsdl/operation.rb', line 16 def name @name end |
#port_type_operation ⇒ Object (readonly)
Returns the value of attribute port_type_operation.
16 17 18 |
# File 'lib/sekken/wsdl/operation.rb', line 16 def port_type_operation @port_type_operation end |
Instance Method Details
#input ⇒ Object
29 30 31 |
# File 'lib/sekken/wsdl/operation.rb', line 29 def input @input ||= Input.new(@binding_operation, @port_type_operation, @wsdl) end |
#input_style ⇒ Object
37 38 39 |
# File 'lib/sekken/wsdl/operation.rb', line 37 def input_style "#{@binding_operation.style}/#{@binding_operation.input_body[:use]}" end |
#output ⇒ Object
33 34 35 |
# File 'lib/sekken/wsdl/operation.rb', line 33 def output @output ||= Output.new(@binding_operation, @port_type_operation, @wsdl) end |
#output_style ⇒ Object
41 42 43 |
# File 'lib/sekken/wsdl/operation.rb', line 41 def output_style "#{@binding_operation.style}/#{@binding_operation.output[:body][:use]}" end |
#soap_action ⇒ Object
18 19 20 |
# File 'lib/sekken/wsdl/operation.rb', line 18 def soap_action @binding_operation.soap_action end |
#soap_version ⇒ Object
22 23 24 25 26 27 |
# File 'lib/sekken/wsdl/operation.rb', line 22 def soap_version case @binding_operation.soap_namespace when Sekken::NS_SOAP_1_1 then '1.1' when Sekken::NS_SOAP_1_2 then '1.2' end end |