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

Instance Attribute Details

#dump_methodObject



41
42
43
# File 'lib/familia/horreum/shared/settings.rb', line 41

def dump_method
  @dump_method || self.class.dump_method
end

#load_methodObject



45
46
47
# File 'lib/familia/horreum/shared/settings.rb', line 45

def load_method
  @load_method || self.class.load_method
end

#suffixObject



37
38
39
# File 'lib/familia/horreum/shared/settings.rb', line 37

def suffix
  @suffix || self.class.suffix
end

Instance Method Details

#logical_databaseObject



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

#optsObject



15
16
17
18
# File 'lib/familia/horreum/shared/settings.rb', line 15

def opts
  @opts ||= {}
  @opts
end

#prefixString

Retrieves the prefix for the current instance by delegating to its class.

Examples:

instance.prefix

Returns:

  • (String)

    The prefix associated with the class of the current instance.



33
34
35
# File 'lib/familia/horreum/shared/settings.rb', line 33

def prefix
  self.class.prefix
end