Sha256: 0f9b3a758c6f0ffcd2df96ed40b93741cae8cd0d223114a42d151ab426960bf4

Contents?: true

Size: 1.71 KB

Versions: 7

Compression:

Stored size: 1.71 KB

Contents

require "typhoeus"
require "multi_json"
require "wisper"

require "cobrato/version"
require "cobrato/configuration"
require "cobrato/client"
require "cobrato/http"
require "cobrato/signature"

require "cobrato/entities/base"
require "cobrato/entities/cnab"
require "cobrato/entities/payee"
require "cobrato/entities/payer"
require "cobrato/entities/person"
require "cobrato/entities/bank_account"
require "cobrato/entities/charge_config"
require "cobrato/entities/payment_config"
require "cobrato/entities/payment"
require "cobrato/entities/charge"
require "cobrato/entities/webhook"
require "cobrato/entities/bank_billet"
require "cobrato/entities/regress_cnab"
require "cobrato/entities/remittance_cnab"
require "cobrato/entities/credit_card"
require "cobrato/entities/charge_template"

require "cobrato/resources/base"
require "cobrato/resources/payee"
require "cobrato/resources/payer"
require "cobrato/resources/person"
require "cobrato/resources/bank_account"
require "cobrato/resources/charge_config"
require "cobrato/resources/payment_config"
require "cobrato/resources/payment"
require "cobrato/resources/charge"
require "cobrato/resources/webhook"
require "cobrato/resources/charging_type"
require "cobrato/resources/regress_cnab"
require "cobrato/resources/remittance_cnab"
require "cobrato/resources/credit_card"
require "cobrato/resources/charge_template"

module Cobrato
  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield(configuration) if block_given?
  end

  def self.client(token)
    Client.new(token)
  end

  def self.subscribe(event, callback)
    Wisper.subscribe(callback, on: event, with: :call)
  end

  def self.signature(secret)
    Signature.new(secret)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cobrato-client-1.1.3 lib/cobrato.rb
cobrato-client-1.1.2 lib/cobrato.rb
cobrato-client-1.1.1 lib/cobrato.rb
cobrato-client-1.1.0 lib/cobrato.rb
cobrato-client-1.0.1 lib/cobrato.rb
cobrato-client-1.0.0 lib/cobrato.rb
cobrato-client-0.27.0 lib/cobrato.rb