Class: HRoutes::RouteStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/webber/hroutes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(c, a, m) ⇒ RouteStruct

Returns a new instance of RouteStruct.



14
15
16
# File 'lib/webber/hroutes.rb', line 14

def initialize c,a,m
  @controller,@action,@request_methods = c,a,m
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



13
14
15
# File 'lib/webber/hroutes.rb', line 13

def action
  @action
end

#controllerObject (readonly)

Returns the value of attribute controller.



13
14
15
# File 'lib/webber/hroutes.rb', line 13

def controller
  @controller
end

#request_methodsObject (readonly)

Returns the value of attribute request_methods.



13
14
15
# File 'lib/webber/hroutes.rb', line 13

def request_methods
  @request_methods
end