class StrongJSON::Type::UnexpectedAttributeError

Attributes

attribute[R]

@dynamic path, attribute

path[R]

@dynamic path, attribute

Public Class Methods

new(path:, attribute:) click to toggle source
Calls superclass method
# File lib/strong_json/type.rb, line 373
def initialize(path:, attribute:)
  @path = path
  @attribute = attribute
  super "UnexpectedAttributeError at #{path.to_s}: attribute=#{attribute}"
end

Public Instance Methods

type() click to toggle source
# File lib/strong_json/type.rb, line 379
def type
  path.type
end