Class: Smplkit::Logging::LoggerChangeEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/smplkit/logging/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, level:, source:, deleted: false) ⇒ LoggerChangeEvent

Returns a new instance of LoggerChangeEvent.



297
298
299
# File 'lib/smplkit/logging/client.rb', line 297

def initialize(name:, level:, source:, deleted: false)
  super
end

Instance Attribute Details

#deletedObject

Returns the value of attribute deleted

Returns:

  • (Object)

    the current value of deleted



296
297
298
# File 'lib/smplkit/logging/client.rb', line 296

def deleted
  @deleted
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



296
297
298
# File 'lib/smplkit/logging/client.rb', line 296

def level
  @level
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



296
297
298
# File 'lib/smplkit/logging/client.rb', line 296

def name
  @name
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



296
297
298
# File 'lib/smplkit/logging/client.rb', line 296

def source
  @source
end

Instance Method Details

#==(other) ⇒ Object



301
302
303
304
305
# File 'lib/smplkit/logging/client.rb', line 301

def ==(other)
  other.is_a?(LoggerChangeEvent) &&
    name == other.name && level == other.level &&
    source == other.source && deleted == other.deleted
end