Module: Scorpio::OpenAPI::Document::Configurables
- Included in:
- Scorpio::OpenAPI::Document
- Defined in:
- lib/scorpio/openapi/document.rb
Instance Attribute Summary collapse
- #faraday_adapter ⇒ Object
- #faraday_builder ⇒ Object
- #logger ⇒ Object
- #request_headers ⇒ Object
- #user_agent ⇒ Object
Instance Attribute Details
#faraday_adapter ⇒ Object
55 56 57 58 |
# File 'lib/scorpio/openapi/document.rb', line 55 def faraday_adapter return @faraday_adapter if instance_variable_defined?(:@faraday_adapter) [Faraday.default_adapter].freeze end |
#faraday_builder ⇒ Object
49 50 51 52 |
# File 'lib/scorpio/openapi/document.rb', line 49 def faraday_builder return @faraday_builder if instance_variable_defined?(:@faraday_builder) -> (_) { } end |
#logger ⇒ Object
61 62 63 64 |
# File 'lib/scorpio/openapi/document.rb', line 61 def logger return @logger if instance_variable_defined?(:@logger) (Object.const_defined?(:Rails) && ::Rails.respond_to?(:logger) ? ::Rails.logger : nil) end |
#request_headers ⇒ Object
37 38 39 40 |
# File 'lib/scorpio/openapi/document.rb', line 37 def request_headers return @request_headers if instance_variable_defined?(:@request_headers) {}.freeze end |