Sha256: d82db8b05b6bea6d709bff35eaa7a0a665aa7ca0d225f72aeb27e2a1ce3b54bf

Contents?: true

Size: 337 Bytes

Versions: 16

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

require 'json'

# Webhook Events are triggered by changes in objects you've created via the API.
class EasyPost::Event < EasyPost::Resource
  # Converts a raw webhook event into an EasyPost object.
  def self.receive(values)
    EasyPost::Util.convert_to_easypost_object(JSON.parse(values), nil)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
easypost-4.10.0 lib/easypost/event.rb
easypost-4.9.0 lib/easypost/event.rb
easypost-4.8.1 lib/easypost/event.rb
easypost-4.8.0 lib/easypost/event.rb
easypost-4.7.1 lib/easypost/event.rb
easypost-4.7.0 lib/easypost/event.rb
easypost-4.6.0 lib/easypost/event.rb
easypost-4.5.0 lib/easypost/event.rb
easypost-4.4.0 lib/easypost/event.rb
easypost-4.3.0 lib/easypost/event.rb
easypost-4.2.1 lib/easypost/event.rb
easypost-4.2.0 lib/easypost/event.rb
easypost-4.1.2 lib/easypost/event.rb
easypost-4.1.1 lib/easypost/event.rb
easypost-4.1.0 lib/easypost/event.rb
easypost-4.0.0 lib/easypost/event.rb