Class: Raven::HttpInterface

Inherits:
Interface show all
Includes:
RackInterface
Defined in:
lib/raven/interfaces/http.rb,
lib/raven/integrations/rack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RackInterface

#from_rack

Methods inherited from Interface

name, #to_hash

Constructor Details

#initialize(*arguments) ⇒ HttpInterface

Returns a new instance of HttpInterface.



14
15
16
17
18
19
# File 'lib/raven/interfaces/http.rb', line 14

def initialize(*arguments)
  self.headers = {}
  self.env = {}
  self.cookies = nil
  super(*arguments)
end

Instance Attribute Details

#cookiesObject

Returns the value of attribute cookies.



10
11
12
# File 'lib/raven/interfaces/http.rb', line 10

def cookies
  @cookies
end

#dataObject

Returns the value of attribute data.



8
9
10
# File 'lib/raven/interfaces/http.rb', line 8

def data
  @data
end

#envObject

Returns the value of attribute env.



12
13
14
# File 'lib/raven/interfaces/http.rb', line 12

def env
  @env
end

#headersObject

Returns the value of attribute headers.



11
12
13
# File 'lib/raven/interfaces/http.rb', line 11

def headers
  @headers
end

#methodObject

Returns the value of attribute method.



7
8
9
# File 'lib/raven/interfaces/http.rb', line 7

def method
  @method
end

#query_stringObject

Returns the value of attribute query_string.



9
10
11
# File 'lib/raven/interfaces/http.rb', line 9

def query_string
  @query_string
end

#urlObject

Returns the value of attribute url.



6
7
8
# File 'lib/raven/interfaces/http.rb', line 6

def url
  @url
end