Class: Chespirito::SystemRoute

Inherits:
Object
  • Object
show all
Defined in:
lib/chespirito/routes/route.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



16
17
18
# File 'lib/chespirito/routes/route.rb', line 16

def action
  @action
end

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

#keyObject (readonly)

Returns the value of attribute key.



16
17
18
# File 'lib/chespirito/routes/route.rb', line 16

def key
  @key
end