Sha256: de59e63836ddb671a84c9207450f7d2669bfe00e985039a0fcfac10c14e51e06

Contents?: true

Size: 219 Bytes

Versions: 3

Compression:

Stored size: 219 Bytes

Contents

class CommentsInfo

  attr_accessor :count
  attr_reader :page

  def initialize(count, page)
    @count = count
    @page  = page
  end

  def id  
    return page[/\d+/]
  end
  
  def url
    return page
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-hackernews-1.2.1 lib/ruby-hackernews/domain/entry/comments_info.rb
ruby-hackernews-1.2.0 lib/ruby-hackernews/domain/entry/comments_info.rb
ruby-hackernews-1.1.3 lib/ruby-hackernews/domain/entry/comments_info.rb