Class: Gon::Request
- Inherits:
-
Object
- Object
- Gon::Request
- Defined in:
- lib/gon/request.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#gon ⇒ Object
readonly
Returns the value of attribute gon.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize(environment) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(environment) ⇒ Request
Returns a new instance of Request.
8 9 10 11 |
# File 'lib/gon/request.rb', line 8 def initialize(environment) @env = environment @gon = {} end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
5 6 7 |
# File 'lib/gon/request.rb', line 5 def env @env end |
#gon ⇒ Object (readonly)
Returns the value of attribute gon.
5 6 7 |
# File 'lib/gon/request.rb', line 5 def gon @gon end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/gon/request.rb', line 6 def id @id end |
Instance Method Details
#clear ⇒ Object
13 14 15 |
# File 'lib/gon/request.rb', line 13 def clear @gon = {} end |