class Mikutter::System::Message

Public Class Methods

new(value) click to toggle source
Calls superclass method
# File core/system/message.rb, line 20
def initialize(value)
  value[:user] ||= Mikutter::System::User.system
  value[:modified] ||= value[:created] ||= Time.now.freeze
  super(value)
end

Public Instance Methods

system?() click to toggle source

投稿がシステムメッセージだった場合にtrueを返す

# File core/system/message.rb, line 27
def system?
  true
end
to_me?() click to toggle source
# File core/system/message.rb, line 31
def to_me?
  true
end