Class: Jets::SpecHelpers::Controllers::Params

Inherits:
Object
  • Object
show all
Defined in:
lib/jets/spec_helpers/controllers/params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_paramsObject

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_paramsObject

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_paramsObject

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