class SoapEnumerator::Services::Service::Port
Attributes
address[R]
@!attribute address
attributes[R]
@!attribute attributes
documentation[R]
@!attribute documentation
Public Class Methods
new(port_doc)
click to toggle source
# File lib/soap_enumerator/services/port.rb, line 16 def initialize(port_doc) @attributes = attributes_2_methods(port_doc) @address = get_address(port_doc) @documentation = get_documentation(port_doc) end
Private Instance Methods
get_address(port_doc)
click to toggle source
# File lib/soap_enumerator/services/port.rb, line 28 def get_address(port_doc) Services::Service::Port::Address.new(port_doc.elements[0]) end
get_documentation(doc)
click to toggle source
# File lib/soap_enumerator/services/port.rb, line 24 def get_documentation(doc) doc.search('documentation').text end