Class: Nephos::Controller
- Inherits:
-
Object
- Object
- Nephos::Controller
- Defined in:
- lib/nephos-server/routing/controller.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#infos ⇒ Object
readonly
Returns the value of attribute infos.
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(env, parsed) ⇒ Controller
constructor
A new instance of Controller.
Constructor Details
#initialize(env, parsed) ⇒ Controller
Returns a new instance of Controller.
6 7 8 9 |
# File 'lib/nephos-server/routing/controller.rb', line 6 def initialize env, parsed @env= env @infos= parsed end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
4 5 6 |
# File 'lib/nephos-server/routing/controller.rb', line 4 def env @env end |
#infos ⇒ Object (readonly)
Returns the value of attribute infos.
4 5 6 |
# File 'lib/nephos-server/routing/controller.rb', line 4 def infos @infos end |
Instance Method Details
#arguments ⇒ Object
11 12 13 |
# File 'lib/nephos-server/routing/controller.rb', line 11 def arguments @infos[:args] end |