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



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

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

Instance Method Details

#replayObject



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

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