lib/shipstation/webhook.rb in shipstation-0.25 vs lib/shipstation/webhook.rb in shipstation-0.26
- old
+ new
@@ -1,19 +1,19 @@
-module Shipstation
- class Webhook < ApiResource
- extend Shipstation::APIOperations::List
-
- class << self
- def subscribe(params={})
- response = Shipstation.request(:post, 'webhooks/subscribe', params)
-
- return response
- end
-
- def unsubscribe(object_id, params={})
- response = Shipstation.request(:delete, "webhooks/#{object_id}", params)
-
- return response
- end
- end
- end
+module Shipstation
+ class Webhook < ApiResource
+ extend Shipstation::APIOperations::List
+
+ class << self
+ def subscribe(params={})
+ response = Shipstation.request(:post, 'webhooks/subscribe', params)
+
+ return response
+ end
+
+ def unsubscribe(object_id, params={})
+ response = Shipstation.request(:delete, "webhooks/#{object_id}", params)
+
+ return response
+ end
+ end
+ end
end
\ No newline at end of file