class ViewModel::DeserializationError::InvalidViewType
Attributes
expected_type[R]
Public Class Methods
new(expected_type, node)
click to toggle source
Calls superclass method
ViewModel::AbstractErrorWithBlame::new
# File lib/view_model/deserialization_error.rb, line 169 def initialize(expected_type, node) @expected_type = expected_type super(node) end
Public Instance Methods
detail()
click to toggle source
# File lib/view_model/deserialization_error.rb, line 174 def detail "Cannot deserialize inappropriate view type, expected '#{expected_type}' or an alias" end
meta()
click to toggle source
Calls superclass method
ViewModel::AbstractErrorWithBlame#meta
# File lib/view_model/deserialization_error.rb, line 178 def meta super.merge(expected_type: expected_type) end