Class: Sprig::NullRecord

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/sprig/null_record.rb

Constant Summary

Constants included from Logging

Logging::LOG_COLORS, Logging::LOG_LEVELS

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ NullRecord

Returns a new instance of NullRecord.



5
6
7
# File 'lib/sprig/null_record.rb', line 5

def initialize(error)
  log_error "#{error} (Substituted with NullRecord)"
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject



9
10
11
# File 'lib/sprig/null_record.rb', line 9

def method_missing(*)
  nil
end