Class: WSDL::Reader::Message

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ Message

Returns a new instance of Message.



36
37
38
39
40
41
# File 'lib/wsdl-reader/message.rb', line 36

def initialize(element)
  @parts = Hash.new
  @name  = element.attributes['name']

  process_all_parts element
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



34
35
36
# File 'lib/wsdl-reader/message.rb', line 34

def name
  @name
end

#partsObject (readonly)

Returns the value of attribute parts.



33
34
35
# File 'lib/wsdl-reader/message.rb', line 33

def parts
  @parts
end

Instance Method Details

#elementObject



43
44
45
# File 'lib/wsdl-reader/message.rb', line 43

def element
  parts.map { |_, hash| hash[:element] }.first
end