Class: Openphar::Configuration
- Inherits:
-
Object
- Object
- Openphar::Configuration
- Defined in:
- lib/openphar.rb
Overview
Configuration class for library settings
Instance Attribute Summary collapse
-
#data_path ⇒ Object
Returns the value of attribute data_path.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#ontology_path ⇒ Object
Returns the value of attribute ontology_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
84 85 86 87 88 |
# File 'lib/openphar.rb', line 84 def initialize @ontology_path = Openphar.ontology_path @data_path = Openphar.data_path @logger = Logger.new($stdout, level: :warn) end |
Instance Attribute Details
#data_path ⇒ Object
Returns the value of attribute data_path.
82 83 84 |
# File 'lib/openphar.rb', line 82 def data_path @data_path end |
#logger ⇒ Object
Returns the value of attribute logger.
82 83 84 |
# File 'lib/openphar.rb', line 82 def logger @logger end |
#ontology_path ⇒ Object
Returns the value of attribute ontology_path.
82 83 84 |
# File 'lib/openphar.rb', line 82 def ontology_path @ontology_path end |