Sha256: 2543796f8e1a7ee27a58099fee08373679b03a5e9817428073cf4c8fe06583f6
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 Bytes
Contents
require 'faraday' module Bond class Connection attr_accessor :connection class << self # Create instances of connection object to ensure thread safety # @return [Faraday] connection def connection new.connection end end def initialize connection = Faraday.new(url: Bond::API_URL) connection.basic_auth(Bond.api_key, nil) @connection = connection end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bond-ruby-0.2.0 | lib/bond/connection.rb |
bond-ruby-0.1.0 | lib/bond/connection.rb |