Class: Slingshot::Client::RestClient

Inherits:
Base
  • Object
show all
Defined in:
lib/slingshot/client.rb

Class Method Summary collapse

Methods inherited from Base

#delete, #get, #post, #put, #raise_no_method_error

Class Method Details

.delete(url) ⇒ Object



33
34
35
# File 'lib/slingshot/client.rb', line 33

def self.delete(url)
  ::RestClient.delete url rescue nil
end

.get(url) ⇒ Object



24
25
26
# File 'lib/slingshot/client.rb', line 24

def self.get(url)
  ::RestClient.get url
end

.post(url, data) ⇒ Object



27
28
29
# File 'lib/slingshot/client.rb', line 27

def self.post(url, data)
  ::RestClient.post url, data
end

.put(url, data) ⇒ Object



30
31
32
# File 'lib/slingshot/client.rb', line 30

def self.put(url, data)
  ::RestClient.put url, data
end