Method: CeilingCat::Plugin::Messages.add
- Defined in:
- lib/ceiling_cat/plugins/messages.rb
.add(opts = {}) ⇒ Object
55 56 57 58 59 |
# File 'lib/ceiling_cat/plugins/messages.rb', line 55 def self.add(opts={}) return false unless opts[:to] && opts[:from] && opts[:body] store["messages"] ||= [] store["messages"] = (store["messages"] + [{:to => opts[:to], :from => opts[:from], :body => opts[:body]}]).uniq end |