class PagSeguro::Notification::Authorization

Public Instance Methods

authorization() click to toggle source

Fetch the authorization by its notificationCode.

# File lib/pagseguro/notification/authorization.rb, line 10
def authorization
  Authorization.find_by_notification_code(code)
end
authorization?() click to toggle source

Detect if the notification is from an authorization.

# File lib/pagseguro/notification/authorization.rb, line 5
def authorization?
  type == "applicationAuthorization"
end