Sha256: 746cc6f226dea0bd84db857e5cda4352cd44b6f14bbe8cd6b94d6dd2e301e50a
Contents?: true
Size: 386 Bytes
Versions: 6
Compression:
Stored size: 386 Bytes
Contents
module PagSeguro class Notification < Request attr_accessor :code, :type, :email, :token def initialize(code, type = nil, email = nil, token = nil) @code = code @type = type @email = email @token = token end def transaction(account = nil) PagSeguro::Transaction.new get("/transactions/notifications/#{code}", account) end end end
Version data entries
6 entries across 6 versions & 1 rubygems