Class: TheCity::WebHookWriter
- Defined in:
- lib/writers/web_hook_writer.rb
Instance Attribute Summary
Attributes inherited from ApiWriter
#error_messages, #response_code
Instance Method Summary collapse
-
#initialize(data) ⇒ WebHookWriter
constructor
Constructor.
Methods inherited from ApiWriter
Constructor Details
#initialize(data) ⇒ WebHookWriter
Constructor.
8 9 10 11 12 13 14 |
# File 'lib/writers/web_hook_writer.rb', line 8 def initialize(data) @url_action = :post @url_data_path = "/webhooks" @url_data_delete_path = "/webhooks/#{data[:id]}" @url_data_params = data end |