Class: Stockman::Logic::Storage
- Inherits:
-
Object
- Object
- Stockman::Logic::Storage
- Defined in:
- lib/stockman/logic/storage.rb
Class Method Summary collapse
Class Method Details
.obtain_amount(key, field) ⇒ Object
12 13 14 15 16 |
# File 'lib/stockman/logic/storage.rb', line 12 def self.obtain_amount(key, field) value = Logic.redis.hget(key, field) Utils.deserialize_amount(value) end |