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.



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

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

Instance Method Details

#cookiesObject



100
101
102
# File 'lib/action_web_service/protocol/abstract.rb', line 100

def cookies
  @cookies
end

#envObject



92
93
94
# File 'lib/action_web_service/protocol/abstract.rb', line 92

def env
  @env
end

#hostObject



96
97
98
# File 'lib/action_web_service/protocol/abstract.rb', line 96

def host
  ''
end

#query_parametersObject



84
85
86
# File 'lib/action_web_service/protocol/abstract.rb', line 84

def query_parameters
  @qparams
end

#request_parametersObject



88
89
90
# File 'lib/action_web_service/protocol/abstract.rb', line 88

def request_parameters
  @rparams
end

#reset_sessionObject



108
109
110
# File 'lib/action_web_service/protocol/abstract.rb', line 108

def reset_session
  @session = {}
end

#sessionObject



104
105
106
# File 'lib/action_web_service/protocol/abstract.rb', line 104

def session
  @session
end