Class: ActiveRestClient::CachedResponse
- Inherits:
-
Object
- Object
- ActiveRestClient::CachedResponse
- Defined in:
- lib/active_rest_client/caching.rb
Instance Attribute Summary collapse
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#expires ⇒ Object
Returns the value of attribute expires.
-
#result ⇒ Object
Returns the value of attribute result.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(options) ⇒ CachedResponse
constructor
A new instance of CachedResponse.
Constructor Details
#initialize(options) ⇒ CachedResponse
Returns a new instance of CachedResponse.
84 85 86 87 88 89 |
# File 'lib/active_rest_client/caching.rb', line 84 def initialize() @status = [:status] @result = [:result] @etag = [:etag] @expires = [:expires] end |
Instance Attribute Details
#etag ⇒ Object
Returns the value of attribute etag.
82 83 84 |
# File 'lib/active_rest_client/caching.rb', line 82 def etag @etag end |
#expires ⇒ Object
Returns the value of attribute expires.
82 83 84 |
# File 'lib/active_rest_client/caching.rb', line 82 def expires @expires end |
#result ⇒ Object
Returns the value of attribute result.
82 83 84 |
# File 'lib/active_rest_client/caching.rb', line 82 def result @result end |
#status ⇒ Object
Returns the value of attribute status.
82 83 84 |
# File 'lib/active_rest_client/caching.rb', line 82 def status @status end |