Class: CF::Client
- Inherits:
-
Object
- Object
- CF::Client
- Defined in:
- lib/cf/client.rb
Instance Method Summary collapse
- #delete(path, params = {}) ⇒ Object
- #get(path, params = {}) ⇒ Object
-
#initialize(configuration) ⇒ Client
constructor
A new instance of Client.
- #patch(path, body = nil, params = {}) ⇒ Object
- #post(path, body = nil, params = {}) ⇒ Object
- #put(path, body = nil, params = {}) ⇒ Object
Constructor Details
Instance Method Details
#delete(path, params = {}) ⇒ Object
29 30 31 |
# File 'lib/cf/client.rb', line 29 def delete(path, params = {}) request(:delete, path, nil, params) end |
#get(path, params = {}) ⇒ Object
13 14 15 |
# File 'lib/cf/client.rb', line 13 def get(path, params = {}) request(:get, path, nil, params) end |
#patch(path, body = nil, params = {}) ⇒ Object
25 26 27 |
# File 'lib/cf/client.rb', line 25 def patch(path, body = nil, params = {}) request(:patch, path, body, params) end |
#post(path, body = nil, params = {}) ⇒ Object
17 18 19 |
# File 'lib/cf/client.rb', line 17 def post(path, body = nil, params = {}) request(:post, path, body, params) end |
#put(path, body = nil, params = {}) ⇒ Object
21 22 23 |
# File 'lib/cf/client.rb', line 21 def put(path, body = nil, params = {}) request(:put, path, body, params) end |