Class: ExceptionHandling::Testing::ControllerStub::Request

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRequest



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

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.



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

def env
  @env
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#parametersObject

Returns the value of attribute parameters.



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

def parameters
  @parameters
end

#protocolObject

Returns the value of attribute protocol.



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

def protocol
  @protocol
end

#request_uriObject

Returns the value of attribute request_uri.



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

def request_uri
  @request_uri
end

#session_optionsObject

Returns the value of attribute session_options.



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

def session_options
  @session_options
end