Module: Money::Bank::ECB::Cache

Included in:
CacheFile, SimpleCache
Defined in:
lib/money/bank/ecb/cache.rb

Instance Method Summary collapse

Instance Method Details

#getString

Get what the cache contains.

Returns:

  • (String)

Raises:

  • (StandardError)


16
17
18
# File 'lib/money/bank/ecb/cache.rb', line 16

def get
  raise StandardError, "Implement '.get' in your Cache!"
end

#set(value) ⇒ String

Set the cache.

Parameters:

  • value (String)

    Set the cache to hold the value.

Returns:

  • (String)

Raises:

  • (StandardError)


9
10
11
# File 'lib/money/bank/ecb/cache.rb', line 9

def set(value)
  raise StandardError, "Implement '.set(&block)' in your Cache!"
end