Class: OsExperience::Config
- Inherits:
-
Object
- Object
- OsExperience::Config
- Includes:
- Singleton
- Defined in:
- lib/os_experience/config.rb
Instance Attribute Summary collapse
-
#connection_tries ⇒ Object
Returns the value of attribute connection_tries.
-
#documents_path ⇒ Object
Returns the value of attribute documents_path.
-
#index ⇒ Object
Returns the value of attribute index.
-
#schema_path ⇒ Object
Returns the value of attribute schema_path.
- #time_between_connection_tries ⇒ Object
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#connection_tries ⇒ Object
Returns the value of attribute connection_tries.
5 6 7 |
# File 'lib/os_experience/config.rb', line 5 def connection_tries @connection_tries end |
#documents_path ⇒ Object
Returns the value of attribute documents_path.
5 6 7 |
# File 'lib/os_experience/config.rb', line 5 def documents_path @documents_path end |
#index ⇒ Object
Returns the value of attribute index.
5 6 7 |
# File 'lib/os_experience/config.rb', line 5 def index @index end |
#schema_path ⇒ Object
Returns the value of attribute schema_path.
5 6 7 |
# File 'lib/os_experience/config.rb', line 5 def schema_path @schema_path end |
#time_between_connection_tries ⇒ Object
12 13 14 |
# File 'lib/os_experience/config.rb', line 12 def time_between_connection_tries @time_between_connection_tries || 3 end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/os_experience/config.rb', line 5 def url @url end |
Instance Method Details
#schema ⇒ Object
16 17 18 |
# File 'lib/os_experience/config.rb', line 16 def schema @schema ||= Oj.load(File.read(File.join(Dir.pwd, schema_path))) end |