Class: Mv::Core::Route::Index
- Inherits:
-
Object
- Object
- Mv::Core::Route::Index
- Defined in:
- lib/mv/core/route/index.rb
Instance Attribute Summary collapse
-
#validation ⇒ Object
readonly
Returns the value of attribute validation.
Instance Method Summary collapse
-
#initialize(validation) ⇒ Index
constructor
A new instance of Index.
- #route ⇒ Object
Constructor Details
#initialize(validation) ⇒ Index
Returns a new instance of Index.
7 8 9 |
# File 'lib/mv/core/route/index.rb', line 7 def initialize(validation) @validation = validation end |
Instance Attribute Details
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
5 6 7 |
# File 'lib/mv/core/route/index.rb', line 5 def validation @validation end |
Instance Method Details
#route ⇒ Object
11 12 13 |
# File 'lib/mv/core/route/index.rb', line 11 def route [Mv::Core::Constraint::Description.new(validation.index_name, :index)] end |