Class: Slingshot::Client::RestClient
- Defined in:
- lib/slingshot/client.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.delete(url) ⇒ Object
24 25 26 |
# File 'lib/slingshot/client.rb', line 24 def self.delete(url) ::RestClient.delete url rescue nil end |
.get(url) ⇒ Object
18 19 20 |
# File 'lib/slingshot/client.rb', line 18 def self.get(url) ::RestClient.get url end |
.post(url, data) ⇒ Object
21 22 23 |
# File 'lib/slingshot/client.rb', line 21 def self.post(url, data) ::RestClient.post url, data end |