Sha256: a28a571bc727910a495068c1928baacba4ff580957d5d829628fc86ee9d028b6

Contents?: true

Size: 290 Bytes

Versions: 15

Compression:

Stored size: 290 Bytes

Contents

module PlaidRails
  class Webhook < ActiveRecord::Base
    
    validates :code, presence: true
    validates :message, presence: true
    validates :access_token, presence: true
    after_save :event
   
    private
    def event
      PlaidRails::Event.instrument(self)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
plaid_rails-0.10.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.9.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.8.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.7.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.6.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.5.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.4.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.3.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.2.3 app/models/plaid_rails/webhook.rb
plaid_rails-0.2.2 app/models/plaid_rails/webhook.rb
plaid_rails-0.2.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.1.1 app/models/plaid_rails/webhook.rb
plaid_rails-0.1.0 app/models/plaid_rails/webhook.rb
plaid_rails-0.0.2 app/models/plaid_rails/webhook.rb
plaid_rails-0.0.1 app/models/plaid_rails/webhook.rb