Module: Familia::Horreum::Settings
- Included in:
- Familia::Horreum
- Defined in:
- lib/familia/horreum/shared/settings.rb
Overview
Settings - Module containing settings for Familia::Horreum (InstanceMethods)
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#logical_database ⇒ Object
-
#logical_database=(v) ⇒ Object
-
#opts ⇒ Object
-
#prefix ⇒ String
Retrieves the prefix for the current instance by delegating to its class.
Instance Attribute Details
#dump_method ⇒ Object
41 42 43 |
# File 'lib/familia/horreum/shared/settings.rb', line 41 def dump_method @dump_method || self.class.dump_method end |
#load_method ⇒ Object
45 46 47 |
# File 'lib/familia/horreum/shared/settings.rb', line 45 def load_method @load_method || self.class.load_method end |
#suffix ⇒ Object
37 38 39 |
# File 'lib/familia/horreum/shared/settings.rb', line 37 def suffix @suffix || self.class.suffix end |
Instance Method Details
#logical_database ⇒ Object
24 25 26 |
# File 'lib/familia/horreum/shared/settings.rb', line 24 def logical_database @logical_database || self.class.logical_database end |
#logical_database=(v) ⇒ Object
20 21 22 |
# File 'lib/familia/horreum/shared/settings.rb', line 20 def logical_database=(v) @logical_database = v.to_i end |
#opts ⇒ Object
15 16 17 18 |
# File 'lib/familia/horreum/shared/settings.rb', line 15 def opts @opts ||= {} @opts end |
#prefix ⇒ String
Retrieves the prefix for the current instance by delegating to its class.
33 34 35 |
# File 'lib/familia/horreum/shared/settings.rb', line 33 def prefix self.class.prefix end |