module TwitterFriendly::Serializer::Instrumenter
Public Instance Methods
perform_decode(args:) { |payload| ... }
click to toggle source
# 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:) { |payload| ... }
click to toggle source
# 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