Sha256: 26c2524caf3442f201aa17f2c7557d2ebeaabaa666c563aee2b330d9ba20135b

Contents?: true

Size: 440 Bytes

Versions: 3

Compression:

Stored size: 440 Bytes

Contents

module ComixScraper
  
  class Comic

    attr_reader :category, :id, :title, :rrp

    def initialize(category, id, title, rrp)
      @category = category
      @id = id
      @title = title
      @rrp = rrp        
    end

    def to_s
      puts "#{@category} : #{@title}"
    end

    def == (other)
      other.category == self.category && other.id == self.id && other.title == self.title && other.rrp == self.rrp
    end

  end  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comix_scraper-2.0.0 lib/comix_scraper/comic.rb
comix_scraper-1.0.0 lib/comix_scraper/comic.rb
comix_scraper-0.0.3 lib/comix_scraper/comic.rb