class Course::Failure

Attributes

data[R]
type[R]

Public Class Methods

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

Public Instance Methods

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