Class: Jets::SpecHelpers::Params
- Inherits:
-
Object
- Object
- Jets::SpecHelpers::Params
- Defined in:
- lib/jets/spec_helpers/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.
5 6 7 |
# File 'lib/jets/spec_helpers/params.rb', line 5 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.
4 5 6 |
# File 'lib/jets/spec_helpers/params.rb', line 4 def body_params @body_params end |
#path_params ⇒ Object
Returns the value of attribute path_params.
4 5 6 |
# File 'lib/jets/spec_helpers/params.rb', line 4 def path_params @path_params end |
#query_params ⇒ Object
Returns the value of attribute query_params.
4 5 6 |
# File 'lib/jets/spec_helpers/params.rb', line 4 def query_params @query_params end |