Class: Wiris::HttpRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/src-generic/HttpRequest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paramsObject

Returns the value of attribute params.



3
4
5
# File 'lib/src-generic/HttpRequest.rb', line 3

def params
  @params
end

Instance Method Details

#getContextURLObject



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

#getParameterNamesObject



20
21
22
# File 'lib/src-generic/HttpRequest.rb', line 20

def getParameterNames
	return params.keys
end