synapsepayments/synapse_pay-ruby

View on GitHub
lib/synapse_pay/endpoints/bank_status_endpoint.rb

Summary

Maintainability
A
15 mins
Test Coverage
module SynapsePay
  class BankStatusEndpoint < APIEndpoint
    
    def all(params={}, headers={})
      method = APIMethod.new(:post, "/bankstatus/show", params, headers, self)
      json = @client.execute(method)
      APIList.new(:BankStatus, json[:banks], method, @client)
    end

  end
end