class TimedCache::Value
Public Class Methods
Source
# File lib/tins/timed_cache.rb, line 3 def self.json_create(hash) new(*hash.values_at('value', 'timestamp')) end
Public Instance Methods
Source
# File lib/tins/timed_cache.rb, line 7 def as_json(*) super | { JSON.create_id => self.class.name } end
Calls superclass method