Module: Postmark::HttpClient

Defined in:
lib/postmark/http_client.rb

Class Method Summary collapse

Class Method Details

.get(path, query = {}) ⇒ Object



14
15
16
# File 'lib/postmark/http_client.rb', line 14

def get(path, query = {})
  handle_response(http.get(url_path(path + to_query_string(query)), headers))
end

.post(path, data = '') ⇒ Object



6
7
8
# File 'lib/postmark/http_client.rb', line 6

def post(path, data = '')
  handle_response(http.post(url_path(path), data, headers))
end

.put(path, data = '') ⇒ Object



10
11
12
# File 'lib/postmark/http_client.rb', line 10

def put(path, data = '')
  handle_response(http.put(url_path(path), data, headers))
end