class SoapEnumerator::Messages::Message
Message
class is struct class for wsd:message
Attributes
attributes[RW]
parts[RW]
Public Class Methods
new(message_doc)
click to toggle source
# File lib/soap_enumerator/messages/message.rb, line 13 def initialize(message_doc) @attributes = attributes_2_methods(message_doc) @parts = get_parts(message_doc) end
Private Instance Methods
get_parts(message_doc)
click to toggle source
get_parts
method create an Array of a message's parts
@param [Nokogiri::XML::Element] message_doc
Elements of wsdl:message in the wsdl document
@return [Array<Messages::Message::Part>]
returns an array of [Message::Part] objects(@see Message::Part) which contain each element's name and type
# File lib/soap_enumerator/messages/message.rb, line 28 def get_parts(message_doc) message_doc.elements&.map do |part_doc| Messages::Message::Part.new(part_doc) end end