Class: WSDL::Reader::Operation

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdl-reader/operation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element, binding) ⇒ Operation

Returns a new instance of Operation.



14
15
16
17
18
19
# File 'lib/wsdl-reader/operation.rb', line 14

def initialize(element, binding)
  @name = element.attributes['name']
  @binding = binding

  parse! element
end

Instance Attribute Details

#bindingObject (readonly)

Returns the value of attribute binding.



12
13
14
# File 'lib/wsdl-reader/operation.rb', line 12

def binding
  @binding
end

#faultObject (readonly)

Returns the value of attribute fault.



11
12
13
# File 'lib/wsdl-reader/operation.rb', line 11

def fault
  @fault
end

#inputObject (readonly)

Returns the value of attribute input.



11
12
13
# File 'lib/wsdl-reader/operation.rb', line 11

def input
  @input
end

#nameObject (readonly)

Returns the value of attribute name.



12
13
14
# File 'lib/wsdl-reader/operation.rb', line 12

def name
  @name
end

#outputObject (readonly)

Returns the value of attribute output.



11
12
13
# File 'lib/wsdl-reader/operation.rb', line 11

def output
  @output
end

#soap_actionObject (readonly)

Returns the value of attribute soap_action.



11
12
13
# File 'lib/wsdl-reader/operation.rb', line 11

def soap_action
  @soap_action
end

#styleObject (readonly)

Returns the value of attribute style.



11
12
13
# File 'lib/wsdl-reader/operation.rb', line 11

def style
  @style
end

Instance Method Details

#lookup_element(port_types, messages) ⇒ Object



29
30
31
32
# File 'lib/wsdl-reader/operation.rb', line 29

def lookup_element(port_types, messages)
  message = port_types.lookup_operation_message :input, self, messages
  message.element.split(':').last
end

#messageObject



25
26
27
# File 'lib/wsdl-reader/operation.rb', line 25

def message
  @name
end

#method_nameObject



21
22
23
# File 'lib/wsdl-reader/operation.rb', line 21

def method_name
  @name.underscore
end