Class: Mondido::Webhook
- Inherits:
-
Object
- Object
- Mondido::Webhook
- Defined in:
- lib/mondido/webhook.rb
Class Method Summary collapse
Class Method Details
.receive(request) ⇒ Object
3 4 5 6 7 |
# File 'lib/mondido/webhook.rb', line 3 def self.receive(request) json = request.body.string hash = JSON.parse(json) transaction = Mondido::CreditCard::Transaction.new(hash) end |