Sha256: fae29ab01586bd0c4bd9ddd366f9daef0d5c1f33ca60ad0e33e8661b22a13e16

Contents?: true

Size: 364 Bytes

Versions: 5

Compression:

Stored size: 364 Bytes

Contents

module Pingpp
  class Withdrawal < AppBasedResource
    extend Pingpp::APIOperations::Create
    extend Pingpp::APIOperations::List
    include Pingpp::APIOperations::Update

    def self.cancel(id, opts={})
      update(id, {:status => 'canceled'}, opts)
    end

    def self.confirm(id, opts={})
      update(id, {:status => 'pending'}, opts)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pingpp-2.2.4 lib/pingpp/withdrawal.rb
pingpp-2.2.3 lib/pingpp/withdrawal.rb
pingpp-2.2.2 lib/pingpp/withdrawal.rb
pingpp-2.2.1 lib/pingpp/withdrawal.rb
pingpp-2.2.0 lib/pingpp/withdrawal.rb