class Result

Attributes

date[RW]
source[RW]
title[RW]

Public Class Methods

new(link='', title='', source = '', date = '') click to toggle source
# File lib/result.rb, line 4
def initialize(link='', title='', source = '', date = '')
        @link = link
        @title = title
        @source = source
        @date = date
end

Public Instance Methods

==(other) click to toggle source
# File lib/result.rb, line 11
def ==(other)
  self.class === other and
  other.author == @link and
  other.title == @title and 
  other.source = @source and 
  other.date == @date
end
Also aliased as: eql?
eql?(other)
Alias for: ==
hash() click to toggle source
# File lib/result.rb, line 20
def hash
  @link.hash ^ @title.hash ^ @source.hash ^ @date.hash # XOR
end