Class: SOAP::EncodingStyle::SOAPHandler::SOAPUnknown
- Inherits:
-
SOAPTemporalObject
- Object
- SOAPTemporalObject
- SOAP::EncodingStyle::SOAPHandler::SOAPUnknown
- Defined in:
- lib/soap/encodingstyle/soapHandler.rb
Instance Attribute Summary collapse
-
#definedtype ⇒ Object
Returns the value of attribute definedtype.
-
#extraattr ⇒ Object
readonly
Returns the value of attribute extraattr.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from SOAPTemporalObject
#id, #parent, #position, #root
Instance Method Summary collapse
- #as_nil ⇒ Object
- #as_string ⇒ Object
- #as_struct ⇒ Object
-
#initialize(handler, elename, type, extraattr) ⇒ SOAPUnknown
constructor
A new instance of SOAPUnknown.
Constructor Details
#initialize(handler, elename, type, extraattr) ⇒ SOAPUnknown
Returns a new instance of SOAPUnknown.
104 105 106 107 108 109 110 111 |
# File 'lib/soap/encodingstyle/soapHandler.rb', line 104 def initialize(handler, elename, type, extraattr) super() @handler = handler @elename = elename @type = type @extraattr = extraattr @definedtype = nil end |
Instance Attribute Details
#definedtype ⇒ Object
Returns the value of attribute definedtype.
101 102 103 |
# File 'lib/soap/encodingstyle/soapHandler.rb', line 101 def definedtype @definedtype end |
#extraattr ⇒ Object (readonly)
Returns the value of attribute extraattr.
102 103 104 |
# File 'lib/soap/encodingstyle/soapHandler.rb', line 102 def extraattr @extraattr end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
100 101 102 |
# File 'lib/soap/encodingstyle/soapHandler.rb', line 100 def type @type end |
Instance Method Details
#as_nil ⇒ Object
141 142 143 144 145 146 147 148 149 150 |
# File 'lib/soap/encodingstyle/soapHandler.rb', line 141 def as_nil o = SOAPNil.decode(@elename) o.id = @id o.root = @root o.parent = @parent o.position = @position o.extraattr.update(@extraattr) @handler.decode_parent(@parent, o) o end |
#as_string ⇒ Object
127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/soap/encodingstyle/soapHandler.rb', line 127 def as_string if @extraattr[XSD::AttrNilName] == 'true' return as_nil end o = SOAPString.decode(@elename) o.id = @id o.root = @root o.parent = @parent o.position = @position o.extraattr.update(@extraattr) @handler.decode_parent(@parent, o) o end |
#as_struct ⇒ Object
113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/soap/encodingstyle/soapHandler.rb', line 113 def as_struct if @extraattr[XSD::AttrNilName] == 'true' return as_nil end o = SOAPStruct.decode(@elename, @type) o.id = @id o.root = @root o.parent = @parent o.position = @position o.extraattr.update(@extraattr) @handler.decode_parent(@parent, o) o end |