Class: AsyncapiCable::Configuration
- Inherits:
-
Object
- Object
- AsyncapiCable::Configuration
- Defined in:
- lib/asyncapi_cable/configuration.rb
Constant Summary collapse
- VALIDATION_MODES =
%i[disabled warn_only enabled].freeze
Instance Attribute Summary collapse
-
#schema_output_dir ⇒ Object
Returns the value of attribute schema_output_dir.
-
#schema_output_format ⇒ Object
Returns the value of attribute schema_output_format.
-
#schemas ⇒ Object
Returns the value of attribute schemas.
-
#validation_mode ⇒ Object
Returns the value of attribute validation_mode.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 |
# File 'lib/asyncapi_cable/configuration.rb', line 8 def initialize @schemas = {} @validation_mode = :disabled @schema_output_dir = "asyncapi" @schema_output_format = :yaml end |
Instance Attribute Details
#schema_output_dir ⇒ Object
Returns the value of attribute schema_output_dir.
3 4 5 |
# File 'lib/asyncapi_cable/configuration.rb', line 3 def schema_output_dir @schema_output_dir end |
#schema_output_format ⇒ Object
Returns the value of attribute schema_output_format.
3 4 5 |
# File 'lib/asyncapi_cable/configuration.rb', line 3 def schema_output_format @schema_output_format end |
#schemas ⇒ Object
Returns the value of attribute schemas.
3 4 5 |
# File 'lib/asyncapi_cable/configuration.rb', line 3 def schemas @schemas end |
#validation_mode ⇒ Object
Returns the value of attribute validation_mode.
4 5 6 |
# File 'lib/asyncapi_cable/configuration.rb', line 4 def validation_mode @validation_mode end |