rubycentral/cfp-app

View on GitHub
app/models/speaker_email_template.rb

Summary

Maintainability
A
0 mins
Test Coverage
class SpeakerEmailTemplate
  TYPES = [ :accept, :waitlist, :reject ]

  DISPLAY_TYPES = {
      accept: 'Accept',
      waitlist: 'Waitlist',
      reject: 'Not Accepted'
  }.with_indifferent_access

  TYPES_TO_STATES = {
      accept: Proposal::ACCEPTED,
      waitlist: Proposal::WAITLISTED,
      reject: Proposal::REJECTED
  }.with_indifferent_access

  attr_accessor :email, :type_key
end