Class: OsExperience::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/os_experience/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connection_triesObject

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_pathObject

Returns the value of attribute documents_path.



5
6
7
# File 'lib/os_experience/config.rb', line 5

def documents_path
  @documents_path
end

#indexObject

Returns the value of attribute index.



5
6
7
# File 'lib/os_experience/config.rb', line 5

def index
  @index
end

#schema_pathObject

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_triesObject



12
13
14
# File 'lib/os_experience/config.rb', line 12

def time_between_connection_tries
  @time_between_connection_tries || 3
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/os_experience/config.rb', line 5

def url
  @url
end

Instance Method Details

#schemaObject



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