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

Version Path
pagseguro-transparente-0.2.5 lib/pagseguro/notification.rb
pagseguro-transparente-0.2.4 lib/pagseguro/notification.rb
pagseguro-transparente-0.2.3 lib/pagseguro/notification.rb
pagseguro-transparente-0.2.2 lib/pagseguro/notification.rb
pagseguro-transparente-0.2.1 lib/pagseguro/notification.rb
pagseguro-transparente-0.2.0 lib/pagseguro/notification.rb