Class: ZodRails::Configuration
- Inherits:
-
Object
- Object
- ZodRails::Configuration
- Defined in:
- lib/zod_rails/configuration.rb
Instance Attribute Summary collapse
-
#excluded_columns ⇒ Object
Returns the value of attribute excluded_columns.
-
#generate_input_schemas ⇒ Object
Returns the value of attribute generate_input_schemas.
-
#input_schema_suffix ⇒ Object
Returns the value of attribute input_schema_suffix.
-
#models ⇒ Object
Returns the value of attribute models.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#post_generate_command ⇒ Object
Returns the value of attribute post_generate_command.
-
#schema_suffix ⇒ Object
Returns the value of attribute schema_suffix.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 17 |
# File 'lib/zod_rails/configuration.rb', line 9 def initialize @output_dir = "app/javascript/schemas" @schema_suffix = "Schema" @input_schema_suffix = "InputSchema" @generate_input_schemas = true @excluded_columns = %w[id created_at updated_at] @models = [] @post_generate_command = nil end |
Instance Attribute Details
#excluded_columns ⇒ Object
Returns the value of attribute excluded_columns.
5 6 7 |
# File 'lib/zod_rails/configuration.rb', line 5 def excluded_columns @excluded_columns end |
#generate_input_schemas ⇒ Object
Returns the value of attribute generate_input_schemas.
5 6 7 |
# File 'lib/zod_rails/configuration.rb', line 5 def generate_input_schemas @generate_input_schemas end |
#input_schema_suffix ⇒ Object
Returns the value of attribute input_schema_suffix.
5 6 7 |
# File 'lib/zod_rails/configuration.rb', line 5 def input_schema_suffix @input_schema_suffix end |
#models ⇒ Object
Returns the value of attribute models.
5 6 7 |
# File 'lib/zod_rails/configuration.rb', line 5 def models @models end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
5 6 7 |
# File 'lib/zod_rails/configuration.rb', line 5 def output_dir @output_dir end |
#post_generate_command ⇒ Object
Returns the value of attribute post_generate_command.
5 6 7 |
# File 'lib/zod_rails/configuration.rb', line 5 def post_generate_command @post_generate_command end |
#schema_suffix ⇒ Object
Returns the value of attribute schema_suffix.
5 6 7 |
# File 'lib/zod_rails/configuration.rb', line 5 def schema_suffix @schema_suffix end |