Class: Mv::Core::Route::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/mv/core/route/index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#routeObject



11
12
13
# File 'lib/mv/core/route/index.rb', line 11

def route
  [Mv::Core::Constraint::Description.new(validation.index_name, :index)]
end