Sha256: 1d07c94aad4f51eeddc3e215b5be92ec9acce9eb230254d28f176e6306e5e244

Contents?: true

Size: 404 Bytes

Versions: 3

Compression:

Stored size: 404 Bytes

Contents

module XivelyConnector

  class << self
    attr_writer :configuration
  end

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

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
  end

  class Configuration
    attr_accessor :api_key
    attr_accessor :datapoint_buffer_size
    attr_accessor :only_save_changes
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xively-rb-connector-0.1.4 lib/xively-rb-connector/configuration.rb
xively-rb-connector-0.1.3 lib/xively-rb-connector/configuration.rb
xively-rb-connector-0.1.2 lib/xively-rb-connector/configuration.rb