Class: ActionWebService::Protocol::SimpleActionPackRequest

Inherits:
ActionDispatch::Request
  • Object
show all
Defined in:
lib/action_web_service/protocol/abstract.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(env = {}) ⇒ SimpleActionPackRequest

Returns a new instance of SimpleActionPackRequest.



78
79
80
81
82
83
84
# File 'lib/action_web_service/protocol/abstract.rb', line 78

def initialize(env = {})
  @env = env
  @qparams = {}
  @rparams = {}
  @cookies = {}
  reset_session
end

Instance Method Details

#cookiesObject



102
103
104
# File 'lib/action_web_service/protocol/abstract.rb', line 102

def cookies
  @cookies
end

#envObject



94
95
96
# File 'lib/action_web_service/protocol/abstract.rb', line 94

def env
  @env
end

#hostObject



98
99
100
# File 'lib/action_web_service/protocol/abstract.rb', line 98

def host
  ''
end

#query_parametersObject



86
87
88
# File 'lib/action_web_service/protocol/abstract.rb', line 86

def query_parameters
  @qparams
end

#request_parametersObject



90
91
92
# File 'lib/action_web_service/protocol/abstract.rb', line 90

def request_parameters
  @rparams
end

#reset_sessionObject



110
111
112
# File 'lib/action_web_service/protocol/abstract.rb', line 110

def reset_session
  @session = {}
end

#sessionObject



106
107
108
# File 'lib/action_web_service/protocol/abstract.rb', line 106

def session
  @session
end