Class: LinkHeader::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/link-middleware.rb

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/link-middleware.rb', line 11

def eql?(other)
  return href == other.href && attr_pairs == other.attr_pairs
end

#hashObject



15
16
17
# File 'lib/link-middleware.rb', line 15

def hash
  return href.hash + attr_pairs.hash
end