class RemoteResource::NullStorageEntry

An unset storage entry

Attributes

data[R]
headers[R]

Public Class Methods

new() click to toggle source
# File lib/remote_resource/storage/null_storage_entry.rb, line 10
def initialize
  @headers = {}
  @data = {}
end

Public Instance Methods

cache_control() click to toggle source
# File lib/remote_resource/storage/null_storage_entry.rb, line 19
def cache_control
  @cache_control ||= CacheControl.new('')
end
data?() click to toggle source
# File lib/remote_resource/storage/null_storage_entry.rb, line 27
def data?
  false
end
exists?() click to toggle source
# File lib/remote_resource/storage/null_storage_entry.rb, line 31
def exists?
  false
end
expired?() click to toggle source
# File lib/remote_resource/storage/null_storage_entry.rb, line 23
def expired?
  true
end
headers_for_validation() click to toggle source
# File lib/remote_resource/storage/null_storage_entry.rb, line 35
def headers_for_validation
  {}
end
to_hash() click to toggle source
# File lib/remote_resource/storage/null_storage_entry.rb, line 15
def to_hash
  { data: @data, headers: @headers }
end
validateable?() click to toggle source
# File lib/remote_resource/storage/null_storage_entry.rb, line 39
def validateable?
  false
end