lib/amf/messages.rb in amfora-0.0.1 vs lib/amf/messages.rb in amfora-0.0.2

- old
+ new

@@ -2,21 +2,20 @@ module Messages #:nodoc: # Base class for all special AS3 response messages. Maps to # <tt>flex.messaging.messages.AbstractMessage</tt> class AbstractMessage attr_accessor :client_id - attr_accessor :destination attr_accessor :message_id attr_accessor :timestamp attr_accessor :time_to_live attr_accessor :headers attr_accessor :body def to_amf(options = {}) options[:amf_version] ||= 3 options[:serializable_names] = (self.public_methods - Object.new.public_methods).delete_if { |elm| elm =~ /to_amf|body|.*=/ } - + AMF.serialize(self, options) do |s| if body s.write_utf8_vr("body") s.stream << body end @@ -44,11 +43,10 @@ # The arguments to call the method with attr_accessor :parameters def initialize @client_id = rand_uuid - @destination = nil @message_id = rand_uuid @timestamp = Time.new.to_i*100 @time_to_live = 0 @headers = {} @body = nil @@ -84,10 +82,9 @@ # Maps to <tt>flex.messaging.messages.AcknowledgeMessage</tt> class AcknowledgeMessage < AsyncMessage def initialize(message = nil) @client_id = rand_uuid - @destination = nil @message_id = rand_uuid @timestamp = Time.new.to_i*100 @time_to_live = 0 @headers = {} @body = nil \ No newline at end of file