Sha256: 77f1a0fa8928d020e211666c17aa845ea62924db45b6b0b4a728ae9bf58164f9

Contents?: true

Size: 362 Bytes

Versions: 9

Compression:

Stored size: 362 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
      PagSeguro::Transaction.new get("/transactions/notifications/#{code}")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pagseguro-transparente-0.1.3 lib/pagseguro/notification.rb
pagseguro-transparente-0.1.2 lib/pagseguro/notification.rb
pagseguro-transparente-0.1.1 lib/pagseguro/notification.rb
pagseguro-transparente-0.1.0 lib/pagseguro/notification.rb
pagseguro-transparente-0.0.9 lib/pagseguro/notification.rb
pagseguro-transparente-0.0.8 lib/pagseguro/notification.rb
pagseguro-transparente-0.0.7 lib/pagseguro/notification.rb
pagseguro-transparente-0.0.6 lib/pagseguro/notification.rb
pagseguro-transparente-0.0.5 lib/pagseguro/notification.rb