Sha256: 3b334603003ce9dd1cdde60c9e63d82b07164a2e9d2c947f0feab2a55904c117

Contents?: true

Size: 701 Bytes

Versions: 18

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

require "faraday"
require "faraday_middleware"

require "fmrest/version"
require "fmrest/v1"

module FmRest
  class << self
    attr_accessor :token_store

    attr_writer :default_connection_settings

    def default_connection_settings
      @default_connection_settings || {}
    end

    def config=(connection_hash)
      warn "[DEPRECATION] `FmRest.config=` is deprecated, use `FmRest.default_connection_settings=` instead"
      self.default_connection_settings = connection_hash
    end

    def config
      warn "[DEPRECATION] `FmRest.config` is deprecated, use `FmRest.default_connection_settings` instead"
      default_connection_settings
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fmrest-0.10.1 lib/fmrest.rb
fmrest-0.10.0 lib/fmrest.rb
fmrest-0.9.0 lib/fmrest.rb
fmrest-0.8.0 lib/fmrest.rb
fmrest-0.7.1 lib/fmrest.rb
fmrest-0.7.0 lib/fmrest.rb
fmrest-0.6.0 lib/fmrest.rb
fmrest-0.5.2 lib/fmrest.rb
fmrest-0.5.1 lib/fmrest.rb
fmrest-0.5.0 lib/fmrest.rb
fmrest-0.4.1 lib/fmrest.rb
fmrest-0.4.0 lib/fmrest.rb
fmrest-0.3.3 lib/fmrest.rb
fmrest-0.3.2 lib/fmrest.rb
fmrest-0.3.1 lib/fmrest.rb
fmrest-0.3.0 lib/fmrest.rb
fmrest-0.2.5 lib/fmrest.rb
fmrest-0.2.4 lib/fmrest.rb