Class: SOAP::EncodingStyle::LiteralHandler::SOAPUnknown

Inherits:
SOAPTemporalObject show all
Defined in:
lib/soap/encodingstyle/literalHandler.rb

Instance Attribute Summary

Attributes inherited from SOAPTemporalObject

#parent

Instance Method Summary collapse

Constructor Details

#initialize(handler, elename, extraattr) ⇒ SOAPUnknown

Returns a new instance of SOAPUnknown.



105
106
107
108
109
110
# File 'lib/soap/encodingstyle/literalHandler.rb', line 105

def initialize(handler, elename, extraattr)
  super()
  @handler = handler
  @elename = elename
  @extraattr = extraattr
end

Instance Method Details

#as_elementObject



112
113
114
115
116
117
118
# File 'lib/soap/encodingstyle/literalHandler.rb', line 112

def as_element
  o = SOAPElement.decode(@elename)
  o.parent = @parent
  o.extraattr.update(@extraattr)
  @handler.decode_parent(@parent, o)
  o
end

#as_nilObject



128
129
130
131
132
133
134
# File 'lib/soap/encodingstyle/literalHandler.rb', line 128

def as_nil
  o = SOAPNil.decode(@elename)
  o.parent = @parent
  o.extraattr.update(@extraattr)
  @handler.decode_parent(@parent, o)
  o
end

#as_stringObject



120
121
122
123
124
125
126
# File 'lib/soap/encodingstyle/literalHandler.rb', line 120

def as_string
  o = SOAPString.decode(@elename)
  o.parent = @parent
  o.extraattr.update(@extraattr)
  @handler.decode_parent(@parent, o)
  o
end