class Headline

Attributes

channel[R]
title[R]
url[R]

Public Class Methods

new(title, url, channel = '') click to toggle source
# File lib/headline.rb, line 4
def initialize(title, url, channel = '')
  @title = title
  @url = url
  @channel = channel
end

Public Instance Methods

==(other) click to toggle source
# File lib/headline.rb, line 10
def ==(other)
  !other.nil? && other.is_a?(Headline) && @title == other.title &&
    @url == other.url && @channel == other.channel
end
to_s() click to toggle source
# File lib/headline.rb, line 15
def to_s
  "#{title} [#{url}]"
end