bhaberer/cinch-notes

View on GitHub
lib/cinch/plugins/notes/note.rb

Summary

Maintainability
A
0 mins
Test Coverage
# -*- coding: utf-8 -*-
module Cinch
  module Plugins
    class Notes
      # Object to store note information
      class Note
        attr_accessor :from, :to, :message, :time, :sent

        def initialize(from, to, message)
          @from = from
          @to = to
          @message = message
          @sent = false
          @time = Time.now
        end

        def mark_sent
          @sent = true
        end
      end
    end
  end
end