Class: ExceptionNotificationLarkNotifier::Client
- Inherits:
-
Object
- Object
- ExceptionNotificationLarkNotifier::Client
- Defined in:
- lib/exception_notification-lark-notifier/client.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #ping(payload) ⇒ Object
- #post(payload) ⇒ Object
Constructor Details
Instance Method Details
#ping(payload) ⇒ Object
11 12 13 14 |
# File 'lib/exception_notification-lark-notifier/client.rb', line 11 def ping(payload) payload = {text: payload} unless payload.is_a?(Hash) post(payload) end |