Sha256: 55e0a33cc6b89e73cb13cf0f0f46b810a435bee7dd3f544173d99c61762e6781

Contents?: true

Size: 212 Bytes

Versions: 8

Compression:

Stored size: 212 Bytes

Contents

module NotificationHelpers
  def payload_hash(notification)
    JSON.parse(payload_bytes(notification), symbolize_names: true)
  end

  def payload_bytes(notification)
    notification.to_bytes[45..-1]
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
grocer-0.7.1 spec/support/notification_helpers.rb
grocer-0.7.0 spec/support/notification_helpers.rb
grocer-0.6.1 spec/support/notification_helpers.rb
grocer-0.6.0 spec/support/notification_helpers.rb
grocer-0.5.0 spec/support/notification_helpers.rb
grocer-0.4.1 spec/support/notification_helpers.rb
grocer-0.4.0 spec/support/notification_helpers.rb
grocer-0.3.4 spec/support/notification_helpers.rb