Class: Zodra::Configuration
- Inherits:
-
Object
- Object
- Zodra::Configuration
- Defined in:
- lib/zodra/configuration.rb
Constant Summary collapse
- DEFAULTS =
{ output_path: 'app/javascript/types', key_format: :camel, zod_import: 'zod', strict_params: true }.freeze
Instance Attribute Summary collapse
-
#key_format ⇒ Object
Returns the value of attribute key_format.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#strict_params ⇒ Object
Returns the value of attribute strict_params.
-
#zod_import ⇒ Object
Returns the value of attribute zod_import.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 |
# File 'lib/zodra/configuration.rb', line 14 def initialize DEFAULTS.each { |key, value| public_send(:"#{key}=", value) } end |
Instance Attribute Details
#key_format ⇒ Object
Returns the value of attribute key_format.
12 13 14 |
# File 'lib/zodra/configuration.rb', line 12 def key_format @key_format end |
#output_path ⇒ Object
Returns the value of attribute output_path.
12 13 14 |
# File 'lib/zodra/configuration.rb', line 12 def output_path @output_path end |
#strict_params ⇒ Object
Returns the value of attribute strict_params.
12 13 14 |
# File 'lib/zodra/configuration.rb', line 12 def strict_params @strict_params end |
#zod_import ⇒ Object
Returns the value of attribute zod_import.
12 13 14 |
# File 'lib/zodra/configuration.rb', line 12 def zod_import @zod_import end |