Class: JsonApiResource::Connections::CacheConnection
- Inherits:
-
Multiconnect::Connection::Base
- Object
- Multiconnect::Connection::Base
- JsonApiResource::Connections::CacheConnection
- Defined in:
- lib/json_api_resource/connections/cache_connection.rb
Class Attribute Summary collapse
-
.cache ⇒ Object
Returns the value of attribute cache.
Instance Method Summary collapse
Class Attribute Details
.cache ⇒ Object
Returns the value of attribute cache.
11 12 13 |
# File 'lib/json_api_resource/connections/cache_connection.rb', line 11 def cache @cache end |
Instance Method Details
#report_error(e) ⇒ Object
14 15 16 |
# File 'lib/json_api_resource/connections/cache_connection.rb', line 14 def report_error( e ) error_notifier.notify( self, e ) if error_notifier.present? end |
#request(action, *args) ⇒ Object
18 19 20 |
# File 'lib/json_api_resource/connections/cache_connection.rb', line 18 def request( action, *args ) cache_processor.fetch client, action, *args end |