Sha256: bdeff5b2ae9ef44a1be8535fc23ea8f5ae3300d6f5458dfd2d7b1a5b584bf1fe
Contents?: true
Size: 1.21 KB
Versions: 8
Compression:
Stored size: 1.21 KB
Contents
module Cobrato class Client attr_reader :http def initialize(token) @http = Http.new(token) end def authenticated? http.get("") do |response| response.code == 200 end rescue RequestError => e raise e unless e.code == 401 false end def payees Resources::Payee.new(http) end def bank_accounts Resources::BankAccount.new(http) end def charge_configs Resources::ChargeConfig.new(http) end def payment_configs Resources::PaymentConfig.new(http) end def payments Resources::Payment.new(http) end def charges Resources::Charge.new(http) end def webhooks Resources::Webhook.new(http) end def charging_types Resources::ChargingType.new(http) end def regress_cnabs Resources::RegressCnab.new(http) end def remittance_cnabs Resources::RemittanceCnab.new(http) end def credit_cards Resources::CreditCard.new(http) end def payers Resources::Payer.new(http) end def people Resources::Person.new(http) end def charge_templates Resources::ChargeTemplate.new(http) end end end
Version data entries
8 entries across 8 versions & 1 rubygems