Sha256: 13fb47ad7c43422599a57bdffeeb97a9fea1723c47b151c0d42b15b7751ec72a
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
require "faraday" require "faraday_middleware" require "santander_chile/api_client/version" require "santander_chile/api_client/endpoints" module SantanderChile module ApiClient autoload :Error, "santander_chile/api_client/error" autoload :Token, "santander_chile/api_client/token" autoload :Object, "santander_chile/api_client/models/object" autoload :Account, "santander_chile/api_client/models/account" autoload :Collection, "santander_chile/api_client/collection" autoload :Resource, "santander_chile/api_client/resources/resource" autoload :ProductsResource, "santander_chile/api_client/resources/products" class Client autoload :Configuration, "santander_chile/api_client/client/configuration" autoload :Connection, "santander_chile/api_client/client/connection" autoload :Authentication, "santander_chile/api_client/client/authentication" include Authentication attr_accessor :config def initialize self.config = Configuration.new yield(config) if block_given? config.validate! end def connection(host: BASE_URL) Connection.new(client: self, host: host) end def products ProductsResource.new(self) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
santander_chile-api_client-0.0.2 | lib/santander_chile/api_client.rb |