Exception: ViewModel::Migration::StrictMigrationError

Inherits:
AbstractError
  • Object
show all
Defined in:
lib/view_model/migration/strict_migration_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractError

#aggregation?, #causes, #code, #exception, #status, #title, #to_s, #view

Constructor Details

#initialize(vm_name) ⇒ StrictMigrationError

Returns a new instance of StrictMigrationError.



9
10
11
12
# File 'lib/view_model/migration/strict_migration_error.rb', line 9

def initialize(vm_name)
  @vm_name = vm_name
  super()
end

Instance Attribute Details

#vm_nameObject (readonly)

Returns the value of attribute vm_name.



4
5
6
# File 'lib/view_model/migration/strict_migration_error.rb', line 4

def vm_name
  @vm_name
end

Instance Method Details

#detailObject



14
15
16
# File 'lib/view_model/migration/strict_migration_error.rb', line 14

def detail
  "No version was provided for the view #{vm_name}"
end

#metaObject



18
19
20
21
22
# File 'lib/view_model/migration/strict_migration_error.rb', line 18

def meta
  {
    viewmodel: vm_name,
  }
end