1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/sample/soap/sampleStruct/iSampleStruct.rb

23 lines
465 B
Ruby
Raw Normal View History

require 'soap/mapping'
SampleStructServiceNamespace = 'http://tempuri.org/sampleStructService'
class SampleStruct; include SOAP::Marshallable
attr_accessor :sampleArray
attr_accessor :date
def initialize
@sampleArray = SampleArray[ "cyclic", self ]
@date = DateTime.now
end
def wrap( rhs )
@sampleArray = SampleArray[ "wrap", rhs.dup ]
@date = DateTime.now
self
end
end
class SampleArray < Array; include SOAP::Marshallable
end