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.
77 78 79 80 81 82 |
# File 'lib/active_rest_client/caching.rb', line 77 def initialize() @status = [:status] @result = [:result] @etag = [:etag] @expires = [:expires] end |
Instance Attribute Details
#etag ⇒ Object
Returns the value of attribute etag.
75 76 77 |
# File 'lib/active_rest_client/caching.rb', line 75 def etag @etag end |
#expires ⇒ Object
Returns the value of attribute expires.
75 76 77 |
# File 'lib/active_rest_client/caching.rb', line 75 def expires @expires end |
#result ⇒ Object
Returns the value of attribute result.
75 76 77 |
# File 'lib/active_rest_client/caching.rb', line 75 def result @result end |
#status ⇒ Object
Returns the value of attribute status.
75 76 77 |
# File 'lib/active_rest_client/caching.rb', line 75 def status @status end |