Module: TwitterFriendly::Serializer::Instrumenter
- Defined in:
- lib/twitter_friendly/serializer.rb
Class Method Summary collapse
Class Method Details
.perform_decode(args:, &block) ⇒ Object
39 40 41 42 |
# File 'lib/twitter_friendly/serializer.rb', line 39 def perform_decode(args:, &block) payload = {operation: 'decode', args: args} ::ActiveSupport::Notifications.instrument('decode.twitter_friendly', payload) { yield(payload) } end |
.perform_encode(args:, &block) ⇒ Object
34 35 36 37 |
# File 'lib/twitter_friendly/serializer.rb', line 34 def perform_encode(args:, &block) payload = {operation: 'encode', args: args} ::ActiveSupport::Notifications.instrument('encode.twitter_friendly', payload) { yield(payload) } end |