Class: Tika::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/tika/configuration.rb

Constant Summary collapse

DEFAULT_HOST =
"localhost"
DEFAULT_PORT =
9998

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
# File 'lib/tika/configuration.rb', line 10

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

Instance Attribute Details

#hostObject

Returns the value of attribute host.



7
8
9
# File 'lib/tika/configuration.rb', line 7

def host
  @host
end

#portObject

Returns the value of attribute port.



8
9
10
# File 'lib/tika/configuration.rb', line 8

def port
  @port
end