Class: ExceptionHandler::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/exception_handler/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



10
11
12
13
14
15
16
17
18
19
# File 'lib/exception_handler/config.rb', line 10

def initialize
    @db = false # -> db name (false = no; true = "errors"; [value] = [value])

    @social = {
      twitter:   "http://twitter.com/frontlineutils",
      facebook:  "https://facebook.com/frontline.utilities",
      linkedin:  "https://linkedin.com/company/frontline-utilities",
      youtube:   "https://youtube.com/user/frontlineutils",
      fusion:  "http://frontlinefusion.com/frontlineutils"
    }
end

Instance Attribute Details

#dbObject

Returns the value of attribute db.



8
9
10
# File 'lib/exception_handler/config.rb', line 8

def db
  @db
end

#socialObject

Returns the value of attribute social.



8
9
10
# File 'lib/exception_handler/config.rb', line 8

def social
  @social
end