Class: ExceptionHandling::Testing::ControllerStubBase::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/exception_handling/testing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRequest

Returns a new instance of Request.



12
13
14
15
16
17
18
19
# File 'lib/exception_handling/testing.rb', line 12

def initialize
  @parameters  = { id: "1" }
  @protocol    = 'http'
  @host        = 'localhost'
  @request_uri = "/fun/testing.html?foo=bar"
  @env         = { HOST: "local" }
  @session_options = { id: '93951506217301' }
end

Instance Attribute Details

#envObject

Returns the value of attribute env.



10
11
12
# File 'lib/exception_handling/testing.rb', line 10

def env
  @env
end

#hostObject

Returns the value of attribute host.



10
11
12
# File 'lib/exception_handling/testing.rb', line 10

def host
  @host
end

#parametersObject

Returns the value of attribute parameters.



10
11
12
# File 'lib/exception_handling/testing.rb', line 10

def parameters
  @parameters
end

#protocolObject

Returns the value of attribute protocol.



10
11
12
# File 'lib/exception_handling/testing.rb', line 10

def protocol
  @protocol
end

#request_uriObject

Returns the value of attribute request_uri.



10
11
12
# File 'lib/exception_handling/testing.rb', line 10

def request_uri
  @request_uri
end

#session_optionsObject

Returns the value of attribute session_options.



10
11
12
# File 'lib/exception_handling/testing.rb', line 10

def session_options
  @session_options
end