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



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

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

Instance Method Details

#as_stringObject



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

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

#as_structObject



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

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