Sha256: 8ff8692c3788ca163972ab0d8fad2d7802dbcc8b7391571b2f2a3110f9822b47

Contents?: true

Size: 722 Bytes

Versions: 6

Compression:

Stored size: 722 Bytes

Contents

module SynapsePay
  class DepositEndpoint < APIEndpoint
    
    def all(params={}, headers={})
      method = APIMethod.new(:post, "/deposit/show", params, headers, self)
      json = @client.execute(method)
      APIList.new(:Deposit, json[:deposits], method, @client)
    end

    def create(params={}, headers={})
      method = APIMethod.new(:post, "/deposit/add", params, headers, self)
      json = @client.execute(method)
      Deposit.new(json[:deposit], method, @client)
    end

    def micro(params={}, headers={})
      method = APIMethod.new(:post, "/deposit/micro", params, headers, self)
      json = @client.execute(method)
      APIList.new(:Deposit, json[:deposits], method, @client)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
synapse_pay-0.0.8 lib/synapse_pay/endpoints/deposit_endpoint.rb
synapse_pay-0.0.7 lib/synapse_pay/endpoints/deposit_endpoint.rb
synapse_pay-0.0.6 lib/synapse_pay/endpoints/deposit_endpoint.rb
synapse_pay-0.0.4 lib/synapse_pay/endpoints/deposit_endpoint.rb
synapse_pay-0.0.3 lib/synapse_pay/endpoints/deposit_endpoint.rb
synapse_pay-0.0.1 lib/synapse_pay/endpoints/deposit_endpoint.rb