Sha256: ef0e610972149cafa1b1b0841b6eacc686653c2a7d328d6f23bd06a931e3039d

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

require 'uri'

module Voucherify
  module Service
    class AsyncActions
      attr_reader :client

      def initialize(client)
        @client = client
      end

      def get(id)
        @client.get("/async-actions/#{ERB::Util.url_encode(id)}")
      end

      def list(query)
        @client.get('/async-actions', query)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voucherify-4.1.0 lib/voucherify/service/async_actions.rb