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