Class: Gon::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/gon/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(environment) ⇒ Request

Returns a new instance of Request.



6
7
8
9
# File 'lib/gon/request.rb', line 6

def initialize(environment)
  @env = environment
  @gon = {}
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



3
4
5
# File 'lib/gon/request.rb', line 3

def env
  @env
end

#gonObject (readonly)

Returns the value of attribute gon.



3
4
5
# File 'lib/gon/request.rb', line 3

def gon
  @gon
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/gon/request.rb', line 4

def id
  @id
end

Instance Method Details

#clearObject



11
12
13
# File 'lib/gon/request.rb', line 11

def clear
  @gon = {}
end