Sha256: 8e3917e00d47bb20b35d65cddc8ffb2bae3e291d1e49f2212c639c142e598067

Contents?: true

Size: 259 Bytes

Versions: 6

Compression:

Stored size: 259 Bytes

Contents

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

    def initialize(code)
      @code = code
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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