Class: OpenapiFirst::Config
- Inherits:
-
Object
- Object
- OpenapiFirst::Config
- Defined in:
- lib/openapi_first/config.rb
Instance Attribute Summary collapse
-
#error_response ⇒ Object
readonly
Returns the value of attribute error_response.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error_response: :default) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(error_response: :default) ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/openapi_first/config.rb', line 5 def initialize(error_response: :default) @error_response = error_response end |
Instance Attribute Details
#error_response ⇒ Object (readonly)
Returns the value of attribute error_response.
9 10 11 |
# File 'lib/openapi_first/config.rb', line 9 def error_response @error_response end |
Class Method Details
.default_options ⇒ Object
11 12 13 |
# File 'lib/openapi_first/config.rb', line 11 def self. @default_options ||= new end |
.default_options=(options) ⇒ Object
15 16 17 |
# File 'lib/openapi_first/config.rb', line 15 def self.() @default_options = new(**) end |