Class: Decidim::ReminderRecord

Inherits:
ApplicationRecord show all
Defined in:
app/models/decidim/reminder_record.rb

Instance Method Summary collapse

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/models/decidim/reminder_record.rb', line 13

def active?
  state == "active"
end

#completed?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'app/models/decidim/reminder_record.rb', line 21

def completed?
  state == "completed"
end

#deleted?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'app/models/decidim/reminder_record.rb', line 25

def deleted?
  state == "deleted"
end

#pending?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'app/models/decidim/reminder_record.rb', line 17

def pending?
  state == "pending"
end