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.
6 7 8 9 |
# File 'lib/gon/request.rb', line 6 def initialize(environment) @env = environment @gon = {} end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
3 4 5 |
# File 'lib/gon/request.rb', line 3 def env @env end |
#gon ⇒ Object (readonly)
Returns the value of attribute gon.
3 4 5 |
# File 'lib/gon/request.rb', line 3 def gon @gon end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/gon/request.rb', line 4 def id @id end |
Instance Method Details
#clear ⇒ Object
11 12 13 |
# File 'lib/gon/request.rb', line 11 def clear @gon = {} end |