Class: Appcelerator::Dispatcher::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/appcelerator/dispatcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request, session, message_type, params, request_id) ⇒ Message

Returns a new instance of Message.



58
59
60
61
62
63
64
# File 'lib/appcelerator/dispatcher.rb', line 58

def initialize(request, session, message_type, params, request_id)
  @request = request
  @session = session
  @message_type = message_type
  @params = params
  @request_id = request_id
end

Instance Attribute Details

#message_typeObject

Returns the value of attribute message_type.



57
58
59
# File 'lib/appcelerator/dispatcher.rb', line 57

def message_type
  @message_type
end

#paramsObject

Returns the value of attribute params.



57
58
59
# File 'lib/appcelerator/dispatcher.rb', line 57

def params
  @params
end

#requestObject

Returns the value of attribute request.



57
58
59
# File 'lib/appcelerator/dispatcher.rb', line 57

def request
  @request
end

#request_idObject

Returns the value of attribute request_id.



57
58
59
# File 'lib/appcelerator/dispatcher.rb', line 57

def request_id
  @request_id
end

#responseObject

Returns the value of attribute response.



57
58
59
# File 'lib/appcelerator/dispatcher.rb', line 57

def response
  @response
end

#response_typeObject

Returns the value of attribute response_type.



57
58
59
# File 'lib/appcelerator/dispatcher.rb', line 57

def response_type
  @response_type
end

#sessionObject

Returns the value of attribute session.



57
58
59
# File 'lib/appcelerator/dispatcher.rb', line 57

def session
  @session
end