class Rager::Config
Attributes
Public Class Methods
Source
# File lib/rager/config.rb 26 def initialize 27 @http_adapter = T.let(nil, T.nilable(Rager::Http::Adapters::Abstract)) 28 @logger_type = T.let(nil, T.nilable(Rager::Logger)) 29 @logger = T.let(::Logger.new($stdout), ::Logger) 30 @url = T.let(nil, T.nilable(String)) 31 @api_key = T.let(nil, T.nilable(String)) 32 @timeout = T.let(nil, T.nilable(Numeric)) 33 end
Public Instance Methods
Source
# File lib/rager/config.rb 36 def http_adapter 37 @http_adapter ||= default_http_adapter 38 end