Class: DebtManagementCenter::DebtStore

Inherits:
Common::RedisStore show all
Defined in:
lib/debt_management_center/models/debt_store.rb

Constant Summary

Constants inherited from Common::RedisStore

Common::RedisStore::REQ_CLASS_INSTANCE_VARS

Instance Method Summary collapse

Methods inherited from Common::RedisStore

create, delete, #destroy, #destroyed?, exists?, #expire, find, find_or_build, #initialize, #initialize_dup, keys, #persisted?, pop, redis_key, redis_store, redis_ttl, #save, #save!, #ttl, #update, #update!

Constructor Details

This class inherits a constructor from Common::RedisStore

Instance Method Details

#get_debt(id) ⇒ Object



15
16
17
# File 'lib/debt_management_center/models/debt_store.rb', line 15

def get_debt(id)
  debts.find { |d| d['id'] == id }
end