Class: AMF::Messages::RemotingMessage

Inherits:
AbstractMessage show all
Defined in:
lib/amf/messages.rb

Overview

Maps to flex.messaging.messages.RemotingMessage

Instance Attribute Summary collapse

Attributes inherited from AbstractMessage

#body, #client_id, #headers, #message_id, #time_to_live, #timestamp

Instance Method Summary collapse

Methods inherited from AbstractMessage

#to_amf

Constructor Details

#initializeRemotingMessage

Returns a new instance of RemotingMessage.



46
47
48
49
50
51
52
53
# File 'lib/amf/messages.rb', line 46

def initialize
  @client_id = rand_uuid
  @message_id = rand_uuid
  @timestamp = Time.new.to_i*100
  @time_to_live = 0
  @headers = {}
  @body = nil
end

Instance Attribute Details

#operationObject

The name of the method to be called



41
42
43
# File 'lib/amf/messages.rb', line 41

def operation
  @operation
end

#parametersObject

The arguments to call the method with



44
45
46
# File 'lib/amf/messages.rb', line 44

def parameters
  @parameters
end

#sourceObject

The name of the service to be called including package name



38
39
40
# File 'lib/amf/messages.rb', line 38

def source
  @source
end