Class: Flexirest::CachedResponse
- Inherits:
-
Object
- Object
- Flexirest::CachedResponse
- Defined in:
- lib/flexirest/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.
85 86 87 88 89 90 |
# File 'lib/flexirest/caching.rb', line 85 def initialize() @status = [:status] @result = [:result] @etag = [:etag] @expires = [:expires] end |
Instance Attribute Details
#etag ⇒ Object
Returns the value of attribute etag.
83 84 85 |
# File 'lib/flexirest/caching.rb', line 83 def etag @etag end |
#expires ⇒ Object
Returns the value of attribute expires.
83 84 85 |
# File 'lib/flexirest/caching.rb', line 83 def expires @expires end |
#result ⇒ Object
Returns the value of attribute result.
83 84 85 |
# File 'lib/flexirest/caching.rb', line 83 def result @result end |
#status ⇒ Object
Returns the value of attribute status.
83 84 85 |
# File 'lib/flexirest/caching.rb', line 83 def status @status end |