Class: Chespirito::SystemRoute
- Inherits:
-
Object
- Object
- Chespirito::SystemRoute
- Defined in:
- lib/chespirito/routes/route.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#controller_klass ⇒ Object
readonly
Returns the value of attribute controller_klass.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(*attrs) ⇒ SystemRoute
constructor
A new instance of SystemRoute.
Constructor Details
#initialize(*attrs) ⇒ SystemRoute
Returns a new instance of SystemRoute.
18 19 20 21 |
# File 'lib/chespirito/routes/route.rb', line 18 def initialize(*attrs) @key, @trait = attrs @controller_klass, @action = @trait end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
16 17 18 |
# File 'lib/chespirito/routes/route.rb', line 16 def action @action end |
#controller_klass ⇒ Object (readonly)
Returns the value of attribute controller_klass.
16 17 18 |
# File 'lib/chespirito/routes/route.rb', line 16 def controller_klass @controller_klass end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
16 17 18 |
# File 'lib/chespirito/routes/route.rb', line 16 def key @key end |