Class: ExceptionNotificationLarkNotifier::Http

Inherits:
Object
  • Object
show all
Defined in:
lib/exception_notification-lark-notifier/http.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Http

Returns a new instance of Http.



3
4
5
6
# File 'lib/exception_notification-lark-notifier/http.rb', line 3

def initialize(options)
  @uri = options.fetch(:uri)
  @options = options.fetch(:options)
end

Instance Method Details

#post(options) ⇒ Object



8
9
10
# File 'lib/exception_notification-lark-notifier/http.rb', line 8

def post(options)
  request(:post, options)
end