Module: IesAuth::Rest::Request

Defined in:
lib/ies_auth/rest/request.rb

Overview

Outgoing request methods

Class Method Summary collapse

Class Method Details

.delete(url, **kwargs) ⇒ Object



32
33
34
35
36
# File 'lib/ies_auth/rest/request.rb', line 32

def delete(url, **kwargs)
  request(url, **kwargs) do |uri|
    Net::HTTP::Delete.new(uri)
  end
end

.get(url, **kwargs) ⇒ Object



14
15
16
17
18
# File 'lib/ies_auth/rest/request.rb', line 14

def get(url, **kwargs)
  request(url, **kwargs) do |uri|
    Net::HTTP::Get.new(uri)
  end
end

.post(url, **kwargs) ⇒ Object



20
21
22
23
24
# File 'lib/ies_auth/rest/request.rb', line 20

def post(url, **kwargs)
  request(url, **kwargs) do |uri|
    Net::HTTP::Post.new(uri)
  end
end

.put(url, **kwargs) ⇒ Object



26
27
28
29
30
# File 'lib/ies_auth/rest/request.rb', line 26

def put(url, **kwargs)
  request(url, **kwargs) do |uri|
    Net::HTTP::Put.new(uri)
  end
end