Class: Jets::SpecHelpers::Controllers::Params
- Inherits:
-
Object
- Object
- Jets::SpecHelpers::Controllers::Params
- Defined in:
- lib/jets/spec_helpers/controllers/params.rb
Instance Attribute Summary collapse
-
#body_params ⇒ Object
Returns the value of attribute body_params.
-
#path_params ⇒ Object
Returns the value of attribute path_params.
-
#query_params ⇒ Object
Returns the value of attribute query_params.
Instance Method Summary collapse
-
#initialize(path_params = {}, body_params = {}, query_params = {}) ⇒ Params
constructor
A new instance of Params.
Constructor Details
#initialize(path_params = {}, body_params = {}, query_params = {}) ⇒ Params
Returns a new instance of Params.
4 5 6 |
# File 'lib/jets/spec_helpers/controllers/params.rb', line 4 def initialize(path_params={}, body_params={}, query_params={}) @path_params, @body_params, @query_params = path_params, body_params, query_params end |
Instance Attribute Details
#body_params ⇒ Object
Returns the value of attribute body_params.
3 4 5 |
# File 'lib/jets/spec_helpers/controllers/params.rb', line 3 def body_params @body_params end |
#path_params ⇒ Object
Returns the value of attribute path_params.
3 4 5 |
# File 'lib/jets/spec_helpers/controllers/params.rb', line 3 def path_params @path_params end |
#query_params ⇒ Object
Returns the value of attribute query_params.
3 4 5 |
# File 'lib/jets/spec_helpers/controllers/params.rb', line 3 def query_params @query_params end |