Class: Opi::Route
- Inherits:
-
Object
- Object
- Opi::Route
- Defined in:
- lib/opi/route.rb
Instance Attribute Summary collapse
-
#after ⇒ Object
readonly
Returns the value of attribute after.
-
#before ⇒ Object
readonly
Returns the value of attribute before.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(method, path, options, before, after, block) ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize(method, path, options, before, after, block) ⇒ Route
Returns a new instance of Route.
5 6 7 8 9 10 11 12 |
# File 'lib/opi/route.rb', line 5 def initialize(method, path, , before, after, block) @method = method @path = clean_path(path) @options = @before = before @after = after @block = block end |
Instance Attribute Details
#after ⇒ Object (readonly)
Returns the value of attribute after.
3 4 5 |
# File 'lib/opi/route.rb', line 3 def after @after end |
#before ⇒ Object (readonly)
Returns the value of attribute before.
3 4 5 |
# File 'lib/opi/route.rb', line 3 def before @before end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
3 4 5 |
# File 'lib/opi/route.rb', line 3 def block @block end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
3 4 5 |
# File 'lib/opi/route.rb', line 3 def method @method end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/opi/route.rb', line 3 def @options end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/opi/route.rb', line 3 def path @path end |