Class: MyApiClient::Request::Logger
- Inherits:
-
Object
- Object
- MyApiClient::Request::Logger
- Defined in:
- lib/my_api_client/request/logger.rb
Overview
Description of Logger
Constant Summary collapse
- LOG_LEVEL =
i[debug info warn error fatal].freeze
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(logger, method, uri) ⇒ Logger
constructor
Description of #initialize.
Constructor Details
#initialize(logger, method, uri) ⇒ Logger
Description of #initialize
16 17 18 19 20 |
# File 'lib/my_api_client/request/logger.rb', line 16 def initialize(logger, method, uri) @logger = logger @method = method.to_s.upcase @uri = uri end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
7 8 9 |
# File 'lib/my_api_client/request/logger.rb', line 7 def logger @logger end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
7 8 9 |
# File 'lib/my_api_client/request/logger.rb', line 7 def method @method end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
7 8 9 |
# File 'lib/my_api_client/request/logger.rb', line 7 def uri @uri end |