Class: SOAP::EncodingStyle::LiteralHandler::SOAPUnknown
- Inherits:
-
SOAPTemporalObject
- Object
- SOAPTemporalObject
- SOAP::EncodingStyle::LiteralHandler::SOAPUnknown
- Defined in:
- lib/soap/encodingstyle/literalHandler.rb
Instance Attribute Summary
Attributes inherited from SOAPTemporalObject
Instance Method Summary collapse
- #as_element ⇒ Object
- #as_nil ⇒ Object
- #as_string ⇒ Object
-
#initialize(handler, elename, extraattr) ⇒ SOAPUnknown
constructor
A new instance of SOAPUnknown.
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_element ⇒ Object
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_nil ⇒ Object
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_string ⇒ Object
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 |