Class: ErrorInbox::Configuration
- Inherits:
-
Object
- Object
- ErrorInbox::Configuration
- Defined in:
- lib/error_inbox/configuration.rb
Instance Attribute Summary collapse
- #logger ⇒ Object
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#logger ⇒ Object
14 15 16 17 18 19 |
# File 'lib/error_inbox/configuration.rb', line 14 def logger @logger ||= begin require "logger" Logger.new(STDOUT) end end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/error_inbox/configuration.rb', line 3 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/error_inbox/configuration.rb', line 3 def username @username end |
Instance Method Details
#ignore_if(&block) ⇒ Object
6 7 8 |
# File 'lib/error_inbox/configuration.rb', line 6 def ignore_if(&block) ignores << block end |
#ignores ⇒ Object
10 11 12 |
# File 'lib/error_inbox/configuration.rb', line 10 def ignores @ignores ||= [] end |