Class: HttpStub::Server::Request::Parameters
- Inherits:
-
HashWithIndifferentAccess
- Object
- HashWithIndifferentAccess
- HttpStub::Server::Request::Parameters
- Includes:
- Extensions::Core::Hash::Formatted
- Defined in:
- lib/http_stub/server/request/parameters.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parameter_hash = {}) ⇒ Parameters
constructor
A new instance of Parameters.
Methods included from Extensions::Core::Hash::Formatted
Constructor Details
#initialize(parameter_hash = {}) ⇒ Parameters
Returns a new instance of Parameters.
12 13 14 |
# File 'lib/http_stub/server/request/parameters.rb', line 12 def initialize(parameter_hash={}) super(parameter_hash, "=", "&") end |
Class Method Details
.create(rack_request) ⇒ Object
8 9 10 |
# File 'lib/http_stub/server/request/parameters.rb', line 8 def self.create(rack_request) self.new(rack_request.params) end |