Class: Wiris::HttpRequest
- Inherits:
-
Object
- Object
- Wiris::HttpRequest
- Defined in:
- lib/src-generic/HttpRequest.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
- #getContextURL ⇒ Object
- #getParameter(key) ⇒ Object
- #getParameterNames ⇒ Object
-
#initialize(params) ⇒ HttpRequest
constructor
A new instance of HttpRequest.
Constructor Details
#initialize(params) ⇒ HttpRequest
Returns a new instance of HttpRequest.
5 6 7 |
# File 'lib/src-generic/HttpRequest.rb', line 5 def initialize(params) @params = params; end |
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
3 4 5 |
# File 'lib/src-generic/HttpRequest.rb', line 3 def params @params end |
Instance Method Details
#getContextURL ⇒ Object
16 17 18 |
# File 'lib/src-generic/HttpRequest.rb', line 16 def getContextURL() return nil end |
#getParameter(key) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/src-generic/HttpRequest.rb', line 9 def getParameter(key) if (self.params[key].nil?) return nil end return self.params[key] end |
#getParameterNames ⇒ Object
20 21 22 |
# File 'lib/src-generic/HttpRequest.rb', line 20 def getParameterNames return params.keys end |