Module: Bits::ProviderReporting::ClassMethods

Defined in:
lib/bits/provider_reporting.rb

Instance Method Summary collapse

Instance Method Details

#check_error(text) ⇒ Object



14
15
16
17
# File 'lib/bits/provider_reporting.rb', line 14

def check_error(text)
  check_errors << text
  log.debug("Error on check: #{text}")
end

#check_errorsObject



6
7
8
# File 'lib/bits/provider_reporting.rb', line 6

def check_errors
  @check_errors ||= []
end

#last_check_errorObject



10
11
12
# File 'lib/bits/provider_reporting.rb', line 10

def last_check_error
  check_errors[-1]
end