Class: RSpec::OpenAPI::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/openapi.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debug_enabledObject

Returns the value of attribute debug_enabled.



21
22
23
# File 'lib/rspec/openapi.rb', line 21

def debug_enabled
  @debug_enabled
end

Class Method Details

.load_environment_settingsObject



23
24
25
# File 'lib/rspec/openapi.rb', line 23

def load_environment_settings
  @debug_enabled = ['', '1', 'true'].include?(ENV['DEBUG']&.downcase)
end