Module: Taxy::Connection
- Included in:
- Client
- Defined in:
- lib/connection.rb
Constant Summary collapse
- BASE_URI =
'https://test.cabify.com'.freeze
Instance Method Summary collapse
- #delete(path, params = {}) ⇒ Object
- #get(path, params = {}) ⇒ Object
- #patch(path, params = {}) ⇒ Object
- #post(path, params = {}) ⇒ Object
- #put(path, params = {}) ⇒ Object
Instance Method Details
#delete(path, params = {}) ⇒ Object
17 18 19 |
# File 'lib/connection.rb', line 17 def delete(path, params = {}) request(:delete, path, params) end |
#get(path, params = {}) ⇒ Object
9 10 11 |
# File 'lib/connection.rb', line 9 def get(path, params = {}) request(:get, path, params) end |
#patch(path, params = {}) ⇒ Object
25 26 27 |
# File 'lib/connection.rb', line 25 def patch(path, params = {}) request(:patch, path, params.to_json) end |
#post(path, params = {}) ⇒ Object
13 14 15 |
# File 'lib/connection.rb', line 13 def post(path, params = {}) request(:post, path, params.to_json) end |
#put(path, params = {}) ⇒ Object
21 22 23 |
# File 'lib/connection.rb', line 21 def put(path, params = {}) request(:put, path, params.to_json) end |