Sha256: 7bf95b9b88c375c9049dbed28b66cfc48cf5c4537b4a6d5d158aa7fb1d27c180

Contents?: true

Size: 272 Bytes

Versions: 3

Compression:

Stored size: 272 Bytes

Contents

module Tika
  class Configuration

    DEFAULT_HOST = "localhost"
    DEFAULT_PORT = 9998

    attr_accessor :host
    attr_accessor :port

    def initialize
      @host = ENV["TIKA_HOST"] || DEFAULT_HOST
      @port = ENV["TIKA_PORT"] || DEFAULT_PORT
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tika-client-0.2.0 lib/tika/configuration.rb
tika-client-0.1.1 lib/tika/configuration.rb
tika-client-0.1.0 lib/tika/configuration.rb