Class: VidazingLogger::Colors::ErrorColorScheme Private

Inherits:
VidazingLogger::ColorScheme show all
Defined in:
lib/vidazing_logger/colors/error_color_scheme.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Colors for error messages

Since:

  • 0.1.0

Instance Attribute Summary

Attributes inherited from VidazingLogger::ColorScheme

#name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from VidazingLogger::ColorScheme

create

Constructor Details

#initializeErrorColorScheme

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ErrorColorScheme

Since:

  • 0.1.0



11
12
13
14
15
# File 'lib/vidazing_logger/colors/error_color_scheme.rb', line 11

def initialize
  @name = self.class.name

  ColorScheme.create(@name, date_color: :red)
end

Class Method Details

.idObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



18
19
20
# File 'lib/vidazing_logger/colors/error_color_scheme.rb', line 18

def id
  new.name
end