Module: Familia::Base
Overview
Class Attribute Summary collapse
-
.dump_method ⇒ Object
Returns the value of attribute dump_method.
-
.features ⇒ Object
readonly
Returns the value of attribute features.
-
.load_method ⇒ Object
Returns the value of attribute load_method.
Class Method Summary collapse
Instance Method Summary collapse
- #generate_id ⇒ Object
-
#update_expiration(_ = nil) ⇒ nil
Yo, this class is like that one friend who never checks expiration dates.
- #uuid ⇒ Object
Class Attribute Details
.dump_method ⇒ Object
Returns the value of attribute dump_method.
23 24 25 |
# File 'lib/familia/base.rb', line 23 def dump_method @dump_method end |
.features ⇒ Object (readonly)
Returns the value of attribute features.
22 23 24 |
# File 'lib/familia/base.rb', line 22 def features @features end |
.load_method ⇒ Object
Returns the value of attribute load_method.
23 24 25 |
# File 'lib/familia/base.rb', line 23 def load_method @load_method end |
Class Method Details
Instance Method Details
#generate_id ⇒ Object
51 52 53 54 |
# File 'lib/familia/base.rb', line 51 def generate_id @key ||= Familia.generate_id @key end |
#update_expiration(_ = nil) ⇒ nil
Note:
This method is a no-op. It’s like shouting into the void, but less echo-y.
Yo, this class is like that one friend who never checks expiration dates. It’s living life on the edge, data-style!
46 47 48 49 |
# File 'lib/familia/base.rb', line 46 def update_expiration(_ = nil) Familia.info "[update_expiration] Skipped for #{rediskey}. #{self.class} data is immortal!" nil end |
#uuid ⇒ Object
56 57 58 59 |
# File 'lib/familia/base.rb', line 56 def uuid @uuid ||= SecureRandom.uuid @uuid end |