Sha256: e2b74b73300641c47bc75c41e4c46f9aa4971b652049ab5caaacf6e6ab2d2a20

Contents?: true

Size: 621 Bytes

Versions: 6

Compression:

Stored size: 621 Bytes

Contents

require 'open_pay_resource'

class  Transfers < OpenPayResource


  def create(transfer,customer_id)

      customers=@api_hook.create(:customers)
      customers.create_transfer(customer_id,transfer)

  end

  def all(customer_id)
    customers=@api_hook.create(:customers)
    customers.all_transfers(customer_id)
  end



  def get(transfer,customer_id)

    customers=@api_hook.create(:customers)
    customers.get_transfer(customer_id,transfer)

  end


  def each(customer_id)
    customers=@api_hook.create(:customers)
    customers.each_transfer(customer_id) do |tran|
      yield tran
    end

  end





end



Version data entries

6 entries across 4 versions & 1 rubygems

Version Path
openpay-1.0.3 lib/OpenPay/Transfers.rb
openpay-1.0.3 lib/openpay/transfers.rb
openpay-1.0.2 lib/OpenPay/Transfers.rb
openpay-1.0.2 lib/openpay/transfers.rb
openpay-1.0.1 lib/OpenPay/Transfers.rb
openpay-0.9.8 lib/OpenPay/Transfers.rb