Class: PagSeguro::Notification::Authorization
- Inherits:
-
PagSeguro::Notification
- Object
- PagSeguro::Notification
- PagSeguro::Notification::Authorization
- Defined in:
- lib/pagseguro/notification/authorization.rb
Instance Attribute Summary
Attributes inherited from PagSeguro::Notification
Instance Method Summary collapse
-
#authorization ⇒ Object
Fetch the authorization by its notificationCode.
-
#authorization? ⇒ Boolean
Detect if the notification is from an authorization.
Methods included from Extensions::MassAssignment
Instance Method Details
#authorization ⇒ Object
Fetch the authorization by its notificationCode.
10 11 12 |
# File 'lib/pagseguro/notification/authorization.rb', line 10 def Authorization.find_by_notification_code(code) end |
#authorization? ⇒ Boolean
Detect if the notification is from an authorization.
5 6 7 |
# File 'lib/pagseguro/notification/authorization.rb', line 5 def type == "applicationAuthorization" end |