Class: SOAP::EncodingStyle::SOAPHandler::SOAPUnknown

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

Instance Attribute Summary collapse

Attributes inherited from SOAPTemporalObject

#id, #parent, #position, #root

Instance Method Summary collapse

Constructor Details

#initialize(handler, elename, type, extraattr) ⇒ SOAPUnknown

Returns a new instance of SOAPUnknown.



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

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

Instance Attribute Details

#definedtypeObject

Returns the value of attribute definedtype.



99
100
101
# File 'lib/soap/encodingstyle/soapHandler.rb', line 99

def definedtype
  @definedtype
end

#extraattrObject (readonly)

Returns the value of attribute extraattr.



100
101
102
# File 'lib/soap/encodingstyle/soapHandler.rb', line 100

def extraattr
  @extraattr
end

#typeObject (readonly)

Returns the value of attribute type.



98
99
100
# File 'lib/soap/encodingstyle/soapHandler.rb', line 98

def type
  @type
end

Instance Method Details

#as_nilObject



133
134
135
136
137
138
139
140
141
142
# File 'lib/soap/encodingstyle/soapHandler.rb', line 133

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_stringObject



122
123
124
125
126
127
128
129
130
131
# File 'lib/soap/encodingstyle/soapHandler.rb', line 122

def as_string
  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_structObject



111
112
113
114
115
116
117
118
119
120
# File 'lib/soap/encodingstyle/soapHandler.rb', line 111

def as_struct
  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