Class: Wupee::NotificationTypeConfiguration

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/wupee/notification_type_configuration.rb

Instance Method Summary collapse

Instance Method Details

#wants_email?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/wupee/notification_type_configuration.rb', line 10

def wants_email?
  ['both', 'email'].include?(value)
end

#wants_notification?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/wupee/notification_type_configuration.rb', line 14

def wants_notification?
  ['both', 'notification'].include?(value)
end