Module: Cotoha::Connection
- Included in:
- Client
- Defined in:
- lib/cotoha/connection.rb
Instance Method Summary collapse
- #delete(path, **params) ⇒ Object
- #get(path, **params) ⇒ Object
- #post(path, **params) ⇒ Object
- #put(path, **params) ⇒ Object
Instance Method Details
#delete(path, **params) ⇒ Object
19 20 21 |
# File 'lib/cotoha/connection.rb', line 19 def delete(path, **params) request(:delete, path, params) end |
#get(path, **params) ⇒ Object
7 8 9 |
# File 'lib/cotoha/connection.rb', line 7 def get(path, **params) request(:get, path, params) end |
#post(path, **params) ⇒ Object
11 12 13 |
# File 'lib/cotoha/connection.rb', line 11 def post(path, **params) request(:post, path, params) end |
#put(path, **params) ⇒ Object
15 16 17 |
# File 'lib/cotoha/connection.rb', line 15 def put(path, **params) request(:put, path, params) end |