class Valvat::LookupError
Public Class Methods
new(message, kind)
click to toggle source
Calls superclass method
# File lib/valvat/error.rb, line 7 def initialize(message, kind) @message = message.to_s @kind = kind.is_a?(Class) ? kind.name.split('::').last : kind.to_s super(@message) end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/valvat/error.rb, line 17 def eql?(other) to_s.eql?(other.to_s) end
to_s()
click to toggle source
# File lib/valvat/error.rb, line 13 def to_s "The #{@kind} web service returned the error: #{@message}" end