class Gossiper::ClassResolver

Public Instance Methods

resolve(notification_type) click to toggle source
# File lib/gossiper/class_resolver.rb, line 4
def resolve(notification_type)
  klass = notification_type.split('_').map do |v|
    v.titleize
  end.join('')
  "Notifications::#{klass}Notification"
end