Class: Logster::Group::GroupWeb

Inherits:
Struct
  • Object
show all
Defined in:
lib/logster/group.rb

Instance Method Summary collapse

Instance Method Details

#keyObject



119
120
121
# File 'lib/logster/group.rb', line 119

def key
  self.regex # alias for testing convenience
end

#to_json(opts = nil) ⇒ Object



115
116
117
# File 'lib/logster/group.rb', line 115

def to_json(opts = nil)
  JSON.fast_generate(self.to_h.merge(severity: -1, group: true), opts)
end