Sha256: b476073bddd51c3d9d2e62bde969a52a06f7063d4790979c4762438839d21a9c

Contents?: true

Size: 263 Bytes

Versions: 10

Compression:

Stored size: 263 Bytes

Contents

module Shinmun

  class Comment
    
    attr_accessor :time, :name, :email, :website, :text

    def initialize(attributes)
      for k, v in attributes
        send("#{k}=", v) if respond_to?("#{k}=")
      end

      self.time ||= Time.now
    end

  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
georgi-shinmun-0.5 lib/shinmun/comment.rb
shinmun-1.0.3 lib/shinmun/comment.rb
shinmun-1.0.2 lib/shinmun/comment.rb
shinmun-1.0.1 lib/shinmun/comment.rb
shinmun-1.0 lib/shinmun/comment.rb
shinmun-0.9.2 lib/shinmun/comment.rb
shinmun-0.9.1 lib/shinmun/comment.rb
shinmun-0.9 lib/shinmun/comment.rb
shinmun-0.5.2 lib/shinmun/comment.rb
shinmun-0.5 lib/shinmun/comment.rb