class PagSeguro::Notification

Attributes

code[RW]
email[RW]
token[RW]
type[RW]

Public Class Methods

new(code, type = nil, email = nil, token = nil) click to toggle source
# File lib/pagseguro/notification.rb, line 5
def initialize(code, type = nil, email = nil, token = nil)
  @code = code
  @type = type
  @email = email
  @token = token
end

Public Instance Methods

transaction(account = nil) click to toggle source
# File lib/pagseguro/notification.rb, line 12
def transaction(account = nil)
  PagSeguro::Transaction.new get("/transactions/notifications/#{code}", API_V3, account)
end