Method: SentryMessageFormat#to_json
- Defined in:
- lib/fluent/plugin/out_sentry.rb
#to_json(*_args) ⇒ Object
116 117 118 119 120 121 122 123 |
# File 'lib/fluent/plugin/out_sentry.rb', line 116 def to_json(*_args) hash = {} instance_variables.each do |var| hash[var.to_s.delete '@'] = instance_variable_get var end hash.to_json end |