Class: Dbwatcher::Services::Api::BaseApiService
- Inherits:
-
BaseService
- Object
- BaseService
- Dbwatcher::Services::Api::BaseApiService
- Defined in:
- lib/dbwatcher/services/api/base_api_service.rb
Overview
Base class for API data services
Provides common functionality for API endpoints including session handling, caching, and error handling.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(session, params = {}) ⇒ BaseApiService
constructor
A new instance of BaseApiService.
Methods inherited from BaseService
Methods included from Logging
#debug_enabled?, #log_debug, #log_error, #log_info, #log_warn
Constructor Details
#initialize(session, params = {}) ⇒ BaseApiService
Returns a new instance of BaseApiService.
13 14 15 16 17 |
# File 'lib/dbwatcher/services/api/base_api_service.rb', line 13 def initialize(session, params = {}) @session = session @params = params super() end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
11 12 13 |
# File 'lib/dbwatcher/services/api/base_api_service.rb', line 11 def params @params end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
11 12 13 |
# File 'lib/dbwatcher/services/api/base_api_service.rb', line 11 def session @session end |