Sha256: 1a81c95cc5420bb09c0c7054ef5c91d8eb40edcdf7beabb7eb488802cfe3bb2c

Contents?: true

Size: 399 Bytes

Versions: 11

Compression:

Stored size: 399 Bytes

Contents

module AbsorbApi
  class Configuration
    attr_accessor :url, :absorbuser, :absorbpass, :absorbkey, :ignored_lesson_types, :ignored_course_ids
  end

  class << self
    attr_accessor :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
absorb_api-0.2.0 lib/absorb_api/configuration.rb
absorb_api-0.1.11 lib/absorb_api/configuration.rb
absorb_api-0.1.10 lib/absorb_api/configuration.rb
absorb_api-0.1.9 lib/absorb_api/configuration.rb
absorb_api-0.1.8 lib/absorb_api/configuration.rb
absorb_api-0.1.7 lib/absorb_api/configuration.rb
absorb_api-0.1.6 lib/absorb_api/configuration.rb
absorb_api-0.1.5 lib/absorb_api/configuration.rb
absorb_api-0.1.2 lib/absorb_api/configuration.rb
absorb_api-0.1.1 lib/absorb_api/configuration.rb
absorb_api-0.1.0 lib/absorb_api/configuration.rb