Class: Rivendell::Import::Notification

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/rivendell/import/notification.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.pendingObject



11
12
13
# File 'lib/rivendell/import/notification.rb', line 11

def self.pending
  where :sent_at => nil
end

Instance Method Details

#sent?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/rivendell/import/notification.rb', line 7

def sent?
  sent_at.present?
end