Class: JsonStatham::Config
- Inherits:
-
Object
- Object
- JsonStatham::Config
- Defined in:
- lib/json_statham/config.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#schemas_path ⇒ Object
Returns the value of attribute schemas_path.
-
#store_schema ⇒ Object
Returns the value of attribute store_schema.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #logger? ⇒ Boolean
- #schemas_path_present? ⇒ Boolean
- #store_schema? ⇒ Boolean
Constructor Details
#initialize ⇒ Config
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
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/json_statham/config.rb', line 5 def logger @logger end |
#schemas_path ⇒ Object
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_schema ⇒ Object
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
17 18 19 |
# File 'lib/json_statham/config.rb', line 17 def logger? !!logger end |
#schemas_path_present? ⇒ Boolean
21 22 23 |
# File 'lib/json_statham/config.rb', line 21 def schemas_path_present? !!schemas_path end |
#store_schema? ⇒ Boolean
13 14 15 |
# File 'lib/json_statham/config.rb', line 13 def store_schema? !!store_schema end |