Class: Tika::Configuration
- Inherits:
-
Object
- Object
- Tika::Configuration
- Defined in:
- lib/tika/configuration.rb
Constant Summary collapse
- DEFAULT_HOST =
"localhost"
- DEFAULT_PORT =
9998
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#host ⇒ Object
Returns the value of attribute host.
7 8 9 |
# File 'lib/tika/configuration.rb', line 7 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
8 9 10 |
# File 'lib/tika/configuration.rb', line 8 def port @port end |