class ViewModel::Migration::NoPathError

Attributes

from[R]
to[R]
vm_name[R]

Public Class Methods

new(viewmodel, from, to) click to toggle source
Calls superclass method ViewModel::AbstractError::new
# File lib/view_model/migration/no_path_error.rb, line 9
def initialize(viewmodel, from, to)
  @vm_name = viewmodel.view_name
  @from = from
  @to = to
  super()
end

Public Instance Methods

detail() click to toggle source
# File lib/view_model/migration/no_path_error.rb, line 16
def detail
  "No migration path for #{vm_name} from #{from} to #{to}"
end
meta() click to toggle source
# File lib/view_model/migration/no_path_error.rb, line 20
def meta
  {
    viewmodel: vm_name,
    from: from,
    to: to,
  }
end