Class: SOAP::EncodingStyle::ASPDotNetHandler::SOAPUnknown

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

Instance Attribute Summary

Attributes inherited from SOAPTemporalObject

#parent

Instance Method Summary collapse

Constructor Details

#initialize(handler, elename) ⇒ SOAPUnknown

Returns a new instance of SOAPUnknown.



88
89
90
91
92
# File 'lib/soap/encodingstyle/aspDotNetHandler.rb', line 88

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

Instance Method Details

#as_stringObject



102
103
104
105
106
107
# File 'lib/soap/encodingstyle/aspDotNetHandler.rb', line 102

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

#as_structObject



94
95
96
97
98
99
100
# File 'lib/soap/encodingstyle/aspDotNetHandler.rb', line 94

def as_struct
  o = SOAPStruct.decode(@elename, XSD::AnyTypeName)
  o.parent = @parent
  o.type.name = @name
  @handler.decode_parent(@parent, o)
  o
end