Class: CCEngine::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/cc_engine/config.rb

Instance Method Summary collapse

Constructor Details

#initialize(json_string) ⇒ Config

Returns a new instance of Config.



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

def initialize(json_string)
  @json_string = json_string
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/cc_engine/config.rb', line 17

def enabled?
  parsed_json.fetch("enabled")
end

#exclude_pathsObject



13
14
15
# File 'lib/cc_engine/config.rb', line 13

def exclude_paths
  parsed_json.fetch("exclude_paths")
end

#include_pathsObject



9
10
11
# File 'lib/cc_engine/config.rb', line 9

def include_paths
  parsed_json.fetch("include_paths")
end