Sha256: 5066ce331e6f699b36071a9889257d67a8587af85e4dfad0fcc7115605f5d25e

Contents?: true

Size: 259 Bytes

Versions: 13

Compression:

Stored size: 259 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

13 entries across 13 versions & 1 rubygems

Version Path
georgi-shinmun-0.3.1 lib/shinmun/comment.rb
georgi-shinmun-0.3.10 lib/shinmun/comment.rb
georgi-shinmun-0.3.2 lib/shinmun/comment.rb
georgi-shinmun-0.3.3 lib/shinmun/comment.rb
georgi-shinmun-0.3.4 lib/shinmun/comment.rb
georgi-shinmun-0.3.5 lib/shinmun/comment.rb
georgi-shinmun-0.3.6 lib/shinmun/comment.rb
georgi-shinmun-0.3.7 lib/shinmun/comment.rb
georgi-shinmun-0.3.8 lib/shinmun/comment.rb
georgi-shinmun-0.3.9 lib/shinmun/comment.rb
georgi-shinmun-0.3 lib/shinmun/comment.rb
georgi-shinmun-0.4.1 lib/shinmun/comment.rb
georgi-shinmun-0.4 lib/shinmun/comment.rb