Class: Rets::Metadata::NullCache

Inherits:
Object
  • Object
show all
Defined in:
lib/rets/metadata/null_cache.rb

Overview

This type of metadata cache, which is the default, neither saves nor restores.

Instance Method Summary collapse

Instance Method Details

#load(&_block) ⇒ Object

Load the metadata. Should yield an IO-like object to a block; that block will deserialize the metadata from that object and return the metadata. Returns the metadata, or nil if it could not be loaded.



17
18
19
# File 'lib/rets/metadata/null_cache.rb', line 17

def load(&_block)
  nil
end

#save(&_block) ⇒ Object

Save the metadata. Should yield an IO-like object to a block; that block will serialize the metadata to that object.



10
11
# File 'lib/rets/metadata/null_cache.rb', line 10

def save(&_block)
end