Module: Familia::Horreum::Settings
- Included in:
- Familia::Horreum
- Defined in:
- lib/familia/horreum/settings.rb
Overview
Settings - Module containing settings for Familia::Horreum (InstanceMethods)
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#dump_method ⇒ Object
44 45 46 |
# File 'lib/familia/horreum/settings.rb', line 44 def dump_method @dump_method || self.class.dump_method end |
#load_method ⇒ Object
48 49 50 |
# File 'lib/familia/horreum/settings.rb', line 48 def load_method @load_method || self.class.load_method end |
#suffix ⇒ Object
40 41 42 |
# File 'lib/familia/horreum/settings.rb', line 40 def suffix @suffix || self.class.suffix end |
Instance Method Details
#db ⇒ Object
36 37 38 |
# File 'lib/familia/horreum/settings.rb', line 36 def db @db || self.class.db end |
#db=(v) ⇒ Object
32 33 34 |
# File 'lib/familia/horreum/settings.rb', line 32 def db=(v) @db = v.to_i end |
#opts ⇒ Object
16 17 18 19 |
# File 'lib/familia/horreum/settings.rb', line 16 def opts @opts ||= {} @opts end |
#redisdetails ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/familia/horreum/settings.rb', line 21 def redisdetails { uri: self.class.uri, db: self.class.db, key: rediskey, type: redistype, ttl: ttl, realttl: realttl } end |