Class: Nephos::Controller

Inherits:
Object
  • Object
show all
Defined in:
lib/nephos-server/routing/controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#envObject (readonly)

Returns the value of attribute env.



4
5
6
# File 'lib/nephos-server/routing/controller.rb', line 4

def env
  @env
end

#infosObject (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

#argumentsObject



11
12
13
# File 'lib/nephos-server/routing/controller.rb', line 11

def arguments
  @infos[:args]
end