Sha256: 844e302a3905c6570e6bb6513c4e2e8248f8c7d59f7efc4290997f4a5c45ef61
Contents?: true
Size: 1.83 KB
Versions: 2
Compression:
Stored size: 1.83 KB
Contents
require 'her' require 'faraday_middleware' require 'faraday-http-cache' require 'boletosimples/version' module BoletoSimples autoload :Configuration, 'boletosimples/configuration' autoload :Extra, 'boletosimples/extra' autoload :ResponseError, 'boletosimples/response_error' autoload :LastRequest, 'boletosimples/last_request' autoload :BankBillet, 'boletosimples/resources/bank_billet' autoload :BankBilletAccount, 'boletosimples/resources/bank_billet_account' autoload :Event, 'boletosimples/resources/event' autoload :Customer, 'boletosimples/resources/customer' autoload :CustomerImport, 'boletosimples/resources/customer_import' autoload :CustomerSubscription, 'boletosimples/resources/customer_subscription' autoload :CustomerSubscriptionImport, 'boletosimples/resources/customer_subscription_import' autoload :Installment, 'boletosimples/resources/installment' autoload :Transaction, 'boletosimples/resources/transaction' autoload :Remittance, 'boletosimples/resources/remittance' autoload :Discharge, 'boletosimples/resources/discharge' autoload :BaseModel, 'boletosimples/resources/base_model' autoload :Webhook, 'boletosimples/resources/webhook' autoload :WebhookDelivery, 'boletosimples/resources/webhook_delivery' module Partner autoload :User, 'boletosimples/resources/partner/user' end module Middleware autoload :UserAgent, 'boletosimples/middlewares/user_agent' autoload :RaiseError, 'boletosimples/middlewares/raise_error' autoload :LastRequest, 'boletosimples/middlewares/last_request' end class << self attr_accessor :configuration, :last_request def configure @configuration = Configuration.new yield(configuration) if block_given? configuration.setup_her # after changing configuration gem her should be configured end end end BoletoSimples.configure
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
boletosimples-0.5.0 | lib/boletosimples.rb |
boletosimples-0.4.2 | lib/boletosimples.rb |