Class: ActiveRestClient::CachedResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/active_rest_client/caching.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ CachedResponse

Returns a new instance of CachedResponse.



85
86
87
88
89
90
# File 'lib/active_rest_client/caching.rb', line 85

def initialize(options)
  @status = options[:status]
  @result = options[:result]
  @etag = options[:etag]
  @expires = options[:expires]
end

Instance Attribute Details

#etagObject

Returns the value of attribute etag.



83
84
85
# File 'lib/active_rest_client/caching.rb', line 83

def etag
  @etag
end

#expiresObject

Returns the value of attribute expires.



83
84
85
# File 'lib/active_rest_client/caching.rb', line 83

def expires
  @expires
end

#resultObject

Returns the value of attribute result.



83
84
85
# File 'lib/active_rest_client/caching.rb', line 83

def result
  @result
end

#statusObject

Returns the value of attribute status.



83
84
85
# File 'lib/active_rest_client/caching.rb', line 83

def status
  @status
end