Class: Chargify::Webhook

Inherits:
Base
  • Object
show all
Defined in:
lib/chargify_api_ares/resources/webhook.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

element_name, #to_xml

Class Method Details

.replay(webhook_ids_array) ⇒ Object



4
5
6
# File 'lib/chargify_api_ares/resources/webhook.rb', line 4

def self.replay(webhook_ids_array)
  post :replay, {}, webhook_ids_array.to_xml(:root => :ids)
end

Instance Method Details

#replayObject



8
9
10
# File 'lib/chargify_api_ares/resources/webhook.rb', line 8

def replay
  self.class.replay([self.id])
end