Module: Huyegger
- Defined in:
- lib/huyegger.rb,
lib/huyegger/logger.rb,
lib/huyegger/railtie.rb,
lib/huyegger/version.rb,
lib/huyegger/formatter.rb,
lib/huyegger/middlewares/rails.rb,
lib/huyegger/middlewares/sidekiq.rb
Defined Under Namespace
Modules: Logger, Middlewares Classes: Formatter, Railtie
Constant Summary collapse
- DEFAULT_JSON_ENCODER =
proc { |obj, *opts| obj.to_json(*opts) }
- VERSION =
"0.4.4"
Class Attribute Summary collapse
-
.json_encoder ⇒ Object
Returns the value of attribute json_encoder.
Class Method Summary collapse
Class Attribute Details
.json_encoder ⇒ Object
Returns the value of attribute json_encoder.
8 9 10 |
# File 'lib/huyegger.rb', line 8 def json_encoder @json_encoder end |
Class Method Details
.stringify_keys(hash) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/huyegger.rb', line 13 def self.stringify_keys(hash) Hash.new.tap do |new_hash| hash.each do |key, value| new_hash[key.to_s] = value end end end |