Sha256: 4391c4a9629586c312b88268ac35e6fab71d3610aee4f8ec97302c8c2b8233de

Contents?: true

Size: 235 Bytes

Versions: 3

Compression:

Stored size: 235 Bytes

Contents

module PagSeguro
  class Query < Request
    attr_accessor :code, :email, :token

    def initialize(code)
      @code = code
    end

    def transaction
      PagSeguro::Transaction.new get("/transactions/#{code}")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pagseguro-transparente-0.1.3 lib/pagseguro/query.rb
pagseguro-transparente-0.1.2 lib/pagseguro/query.rb
pagseguro-transparente-0.1.1 lib/pagseguro/query.rb