class Bullet::Notification::Base
def associations_str
def associations_str ":include => #{@associations.map{|a| a.to_s.to_sym unless a.is_a? Hash}.inspect}" end
def body
def body end
def body_with_caller
def body_with_caller body end
def eql?( other )
def eql?( other ) klazz_associations_str == other.klazz_associations_str end
def full_notice
def full_notice @full_notice ||= title + "\n" + body_with_caller end
def hash
def hash klazz_associations_str.hash end
def initialize( base_class, associations, path = nil )
def initialize( base_class, associations, path = nil ) @base_class = base_class @associations = associations.is_a?( Array ) ? associations : [ associations ] @path = path end
def klazz_associations_str
def klazz_associations_str " #{@base_class} => [#{@associations.map(&:inspect).join(', ')}]" end
def present_inline
def present_inline return unless self.presenter.respond_to? :inline self.presenter.send( :inline, self ) end
def present_out_of_channel
def present_out_of_channel return unless self.presenter.respond_to? :out_of_channel self.presenter.send( :out_of_channel, self ) end
def standard_notice
def standard_notice @standard_notifice ||= title + "\n" + body end
def title
def title end