Sha256: 9319c5dbb49787bd671ac85fea77d4a36d697714c77fb9871f6029f79b3eee52

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

require 'truelayer/base_repository'
require 'truelayer/response'

module Truelayer
  class AsyncRepository < BaseRepository
    def refresh(task_id, results_class)
      response = get(format_url('/data/v1/results/:task_id', task_id: task_id))

      Response.build_with_results(json: response.body, results_class: results_class)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
truelayer-0.1.4 lib/truelayer/async_repository.rb
truelayer-0.1.3 lib/truelayer/async_repository.rb
truelayer-0.1.2 lib/truelayer/async_repository.rb
truelayer-0.1.1 lib/truelayer/async_repository.rb
truelayer-0.1.0 lib/truelayer/async_repository.rb