Class: Remap::Notice

Inherits:
Dry::Interface
  • Object
show all
Defined in:
lib/remap/notice.rb,
lib/remap/notice/traced.rb,
lib/remap/notice/untraced.rb

Defined Under Namespace

Classes: Error, Traced, Untraced

Instance Method Summary collapse

Instance Method Details

#exceptionError

Returns:



30
31
32
# File 'lib/remap/notice.rb', line 30

def exception
  Error.new(self)
end

#inspectObject Also known as: to_s



17
18
19
# File 'lib/remap/notice.rb', line 17

def inspect
  "#<%s %s>" % [self.class, to_hash.formated]
end

#to_hashHash

Hash representation of the notice

Returns:

  • (Hash)


25
26
27
# File 'lib/remap/notice.rb', line 25

def to_hash
  super.except(:backtrace).compact_blank
end