class SimpleNotifications::Delivery

Public Instance Methods

entity() click to toggle source
# File lib/simple_notifications/app/models/delivery.rb, line 24
def entity
  simple_notification.entity
end

Private Instance Methods

call_method(_method) click to toggle source
# File lib/simple_notifications/app/models/delivery.rb, line 40
def call_method(_method)
  if _method.class == Symbol
    entity.method(_method).call if entity.class.instance_methods(false).include?(_method)
  elsif _method.class == Proc
    _method.call
  end
end