Module: Bitsor::Connection

Included in:
Client
Defined in:
lib/bitsor/concerns/connection.rb

Instance Method Summary collapse

Instance Method Details

#delete(url, options = {}) ⇒ Object



29
30
31
# File 'lib/bitsor/concerns/connection.rb', line 29

def delete(url, options = {})
  request :delete, url, parse_body(options)
end

#get(url, options = {}) ⇒ Object



13
14
15
# File 'lib/bitsor/concerns/connection.rb', line 13

def get(url, options = {})
  request :get, url, nil, parse_query(options)
end

#last_responseObject



33
34
35
# File 'lib/bitsor/concerns/connection.rb', line 33

def last_response
  @last_response if defined? @last_response
end

#patch(url, options = {}) ⇒ Object



25
26
27
# File 'lib/bitsor/concerns/connection.rb', line 25

def patch(url, options = {})
  request :patch, url, parse_body(options)
end

#post(url, options = {}) ⇒ Object



17
18
19
# File 'lib/bitsor/concerns/connection.rb', line 17

def post(url, options = {})
  request :post, url, parse_body(options)
end

#put(url, options = {}) ⇒ Object



21
22
23
# File 'lib/bitsor/concerns/connection.rb', line 21

def put(url, options = {})
  request :put, url, parse_body(options)
end