Class: ErrorInbox::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/error_inbox/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject



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

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/error_inbox/configuration.rb', line 3

def password
  @password
end

#usernameObject

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

#ignoresObject



10
11
12
# File 'lib/error_inbox/configuration.rb', line 10

def ignores
  @ignores ||= []
end