Class: Rager::Config
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#http_adapter ⇒ Object
Returns the value of attribute http_adapter.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
23 24 25 26 27 28 |
# File 'lib/rager/config.rb', line 23 def initialize @http_adapter = T.let(Rager::Http::Adapters::AsyncHttp.new, Rager::Http::Adapters::Abstract) @logger = T.let(nil, T.nilable(Rager::Logger)) @url = T.let(nil, T.nilable(String)) @api_key = T.let(nil, T.nilable(String)) end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
20 21 22 |
# File 'lib/rager/config.rb', line 20 def api_key @api_key end |
#http_adapter ⇒ Object
Returns the value of attribute http_adapter.
11 12 13 |
# File 'lib/rager/config.rb', line 11 def http_adapter @http_adapter end |
#logger ⇒ Object
Returns the value of attribute logger.
14 15 16 |
# File 'lib/rager/config.rb', line 14 def logger @logger end |
#url ⇒ Object
Returns the value of attribute url.
17 18 19 |
# File 'lib/rager/config.rb', line 17 def url @url end |