Class: Zodra::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_formatObject

Returns the value of attribute key_format.



12
13
14
# File 'lib/zodra/configuration.rb', line 12

def key_format
  @key_format
end

#output_pathObject

Returns the value of attribute output_path.



12
13
14
# File 'lib/zodra/configuration.rb', line 12

def output_path
  @output_path
end

#strict_paramsObject

Returns the value of attribute strict_params.



12
13
14
# File 'lib/zodra/configuration.rb', line 12

def strict_params
  @strict_params
end

#zod_importObject

Returns the value of attribute zod_import.



12
13
14
# File 'lib/zodra/configuration.rb', line 12

def zod_import
  @zod_import
end