class Opie::Failure

Attributes

data[R]
type[R]

Public Class Methods

new(type, data = nil) click to toggle source
# File lib/opie/failure.rb, line 5
def initialize(type, data = nil)
  @type = type
  @data = data
end

Public Instance Methods

==(other) click to toggle source
# File lib/opie/failure.rb, line 10
def ==(other)
  type == other.type && data == other.data
end
hash() click to toggle source
# File lib/opie/failure.rb, line 14
def hash
  [type, (data || '').to_sym].hash
end