Sha256: 7f2d5913590fdb9ae0b4ecef6a2f2a1d9a1861f2fb85c6cc6081fdbef03f4f8c

Contents?: true

Size: 176 Bytes

Versions: 3

Compression:

Stored size: 176 Bytes

Contents

class Article
  include BrowsingHistory::Historizable

  attr_reader :id, :title

  def initialize(id = nil)
    @id    = id || rand(1000)
    @title = random_string
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
browsing_history-0.0.4 spec/browsing_history/fixtures/article.rb
browsing_history-0.0.3 spec/browsing_history/fixtures/article.rb
browsing_history-0.0.2 spec/browsing_history/fixtures/article.rb