Module: Bitsor::Connection
- Included in:
- Client
- Defined in:
- lib/bitsor/concerns/connection.rb
Instance Method Summary collapse
- #delete(url, options = {}) ⇒ Object
- #get(url, options = {}) ⇒ Object
- #last_response ⇒ Object
- #patch(url, options = {}) ⇒ Object
- #post(url, options = {}) ⇒ Object
- #put(url, options = {}) ⇒ Object
Instance Method Details
#delete(url, options = {}) ⇒ Object
29 30 31 |
# File 'lib/bitsor/concerns/connection.rb', line 29 def delete(url, = {}) request :delete, url, parse_body() end |
#get(url, options = {}) ⇒ Object
13 14 15 |
# File 'lib/bitsor/concerns/connection.rb', line 13 def get(url, = {}) request :get, url, nil, parse_query() end |
#last_response ⇒ Object
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, = {}) request :patch, url, parse_body() end |
#post(url, options = {}) ⇒ Object
17 18 19 |
# File 'lib/bitsor/concerns/connection.rb', line 17 def post(url, = {}) request :post, url, parse_body() end |
#put(url, options = {}) ⇒ Object
21 22 23 |
# File 'lib/bitsor/concerns/connection.rb', line 21 def put(url, = {}) request :put, url, parse_body() end |