Class: HRoutes::RouteStruct
- Inherits:
-
Object
- Object
- HRoutes::RouteStruct
- Defined in:
- lib/webber/hroutes.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#request_methods ⇒ Object
readonly
Returns the value of attribute request_methods.
Instance Method Summary collapse
-
#initialize(c, a, m) ⇒ RouteStruct
constructor
A new instance of RouteStruct.
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
#action ⇒ Object (readonly)
Returns the value of attribute action.
13 14 15 |
# File 'lib/webber/hroutes.rb', line 13 def action @action end |
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
13 14 15 |
# File 'lib/webber/hroutes.rb', line 13 def controller @controller end |
#request_methods ⇒ Object (readonly)
Returns the value of attribute request_methods.
13 14 15 |
# File 'lib/webber/hroutes.rb', line 13 def request_methods @request_methods end |