Sha256: 293025078efa5227ced2d2e368b9abfa7153f5e9ee7ae3db00b7da992174b246

Contents?: true

Size: 790 Bytes

Versions: 6

Compression:

Stored size: 790 Bytes

Contents

# encoding: utf-8
module Globase
  class Configuration

    attr_accessor :api_key
    attr_reader :timeout

    attr_accessor :debug

    attr_accessor :host
    attr_accessor :host_port
    attr_accessor :host_protocol

    attr_reader :log_file_path


    def log_file_path=(value)
      @log_file_path = value
      if value.nil?
        RestClient.log = value
      else
        RestClient.log = Logger.new(value)
      end
    end

    # Configuration defaults
    def initialize
      @api_key                        = nil
      @timeout                        = 30
      @debug                          = true
      @host                           = 'rest.globase.com'
      @host_port                      = 443
      @host_protocol                  = 'https'
    end

  end
end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
globase-0.0.3 lib/globase/configuration.rb
globase-0.0.2 lib/globase/configuration.rb
globase-0.0.1 lib/globase/configuration.rb
globase-0.0.0.pre4 lib/globase/configuration.rb
globase-0.0.0.pre3 lib/globase/configuration.rb
globase-0.0.0.pre2 lib/globase/configuration.rb