Sha256: 06afc4998aaa30d45faa73d0ebf853b9115855f1d260be83004eae1b2c2d8273

Contents?: true

Size: 475 Bytes

Versions: 10

Compression:

Stored size: 475 Bytes

Contents

require 'faraday'

require "attune/version"
require "attune/configurable"
require "attune/default"
require "attune/client"

module Attune
  def self.client
    Client.new
  end

  # Simulate all API calls
  # This is equivalent to setting disabled to true and exception_handler to
  # :mock
  def self.test_mode!
    configure do |c|
      c.exception_handler = :mock
      c.disabled = true
    end
  end
  def self.configure(&block)
    Default.configure(&block)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
attune-1.0.3 lib/attune.rb
attune-1.0.2 lib/attune.rb
attune-1.0.1 lib/attune.rb
attune-1.0.0 lib/attune.rb
attune-0.0.7 lib/attune.rb
attune-0.0.6 lib/attune.rb
attune-0.0.5 lib/attune.rb
attune-0.0.4 lib/attune.rb
attune-0.0.3 lib/attune.rb
attune-0.0.2 lib/attune.rb