Class: Harmoniser::WorkPoolReporter::DecoratedChannel

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/harmoniser/work_pool_reporter.rb

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/harmoniser/work_pool_reporter.rb', line 43

def eql?(other)
  other.is_a?(DecoratedChannel) && id == other.id
end

#hashObject



39
40
41
# File 'lib/harmoniser/work_pool_reporter.rb', line 39

def hash
  id.hash
end

#idObject



35
36
37
# File 'lib/harmoniser/work_pool_reporter.rb', line 35

def id
  __getobj__.id
end