Class: Decidim::ReminderRecord

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

Instance Method Summary collapse

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)

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

def active?
  state == "active"
end

#completed?Boolean

Returns:

  • (Boolean)

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

def completed?
  state == "completed"
end

#deleted?Boolean

Returns:

  • (Boolean)

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

def deleted?
  state == "deleted"
end

#pending?Boolean

Returns:

  • (Boolean)

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

def pending?
  state == "pending"
end