Class: WSDL::SOAP::Body

Inherits:
Info show all
Defined in:
lib/wsdl/soap/body.rb

Instance Attribute Summary collapse

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

#initializeBody

Returns a new instance of Body.



22
23
24
25
26
27
28
# File 'lib/wsdl/soap/body.rb', line 22

def initialize
  super
  @parts = nil
  @use = nil
  @encodingstyle = nil
  @namespace = nil
end

Instance Attribute Details

#encodingstyleObject (readonly)

Returns the value of attribute encodingstyle.



19
20
21
# File 'lib/wsdl/soap/body.rb', line 19

def encodingstyle
  @encodingstyle
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



20
21
22
# File 'lib/wsdl/soap/body.rb', line 20

def namespace
  @namespace
end

#partsObject (readonly)

Returns the value of attribute parts.



17
18
19
# File 'lib/wsdl/soap/body.rb', line 17

def parts
  @parts
end

#useObject (readonly)

required



18
19
20
# File 'lib/wsdl/soap/body.rb', line 18

def use
  @use
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/wsdl/soap/body.rb', line 34

def parse_attr(attr, value)
  case attr
  when PartsAttrName
    @parts = value.source
  when UseAttrName
    if ['literal', 'encoded'].include?(value.source)
      @use = value.source.intern
    else
      raise RuntimeError.new("unknown use of soap:body: #{value.source}")
    end
  when EncodingStyleAttrName
    @encodingstyle = value.source
    @encodingstyle = nil if @encodingstyle.to_s.empty?
    value.source
  when NamespaceAttrName
    @namespace = value.source
  else
    nil
  end
end

#parse_element(element) ⇒ Object



30
31
32
# File 'lib/wsdl/soap/body.rb', line 30

def parse_element(element)
  nil
end