Class: JsonStatham::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



7
8
9
10
11
# File 'lib/json_statham/config.rb', line 7

def initialize
  @schemas_path = nil
  @store_schema = nil
  @logger       = nil
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

#schemas_pathObject

Returns the value of attribute schemas_path.



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

def schemas_path
  @schemas_path
end

#store_schemaObject

Returns the value of attribute store_schema.



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

def store_schema
  @store_schema
end

Instance Method Details

#logger?Boolean

Returns:

  • (Boolean)


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

def logger?
  !!logger
end

#schemas_path_present?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/json_statham/config.rb', line 21

def schemas_path_present?
  !!schemas_path
end

#store_schema?Boolean

Returns:

  • (Boolean)


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

def store_schema?
  !!store_schema
end