class SoapEnumerator::Services::Service
Attributes
attributes[R]
@!attribute attributes
documentation[R]
ports[R]
@!attribute ports
Public Class Methods
new(service_doc)
click to toggle source
# File lib/soap_enumerator/services/service.rb, line 15 def initialize(service_doc) @attributes = attributes_2_methods(service_doc) @ports = get_ports(service_doc) @documentation = get_documentation(service_doc) end
Private Instance Methods
get_documentation(doc)
click to toggle source
# File lib/soap_enumerator/services/service.rb, line 23 def get_documentation(doc) doc.search('documentation').text end
get_ports(service_doc)
click to toggle source
# File lib/soap_enumerator/services/service.rb, line 27 def get_ports(service_doc) service_doc.search('//wsdl:port').map do |port| Services::Service::Port.new(port) end end