Class: Slingshot::Client::Base

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

Direct Known Subclasses

RestClient

Instance Method Summary collapse

Instance Method Details

#delete(url) ⇒ Object



15
16
17
# File 'lib/slingshot/client.rb', line 15

def delete(url)
  raise_no_method_error
end

#get(url) ⇒ Object



6
7
8
# File 'lib/slingshot/client.rb', line 6

def get(url)
  raise_no_method_error
end

#post(url, data) ⇒ Object



9
10
11
# File 'lib/slingshot/client.rb', line 9

def post(url, data)
  raise_no_method_error
end

#put(url, data) ⇒ Object

Raises:

  • (NoMethodError)


12
13
14
# File 'lib/slingshot/client.rb', line 12

def put(url, data)
  raise NoMethodError, "Implement this method in your client class"
end

#raise_no_method_errorObject

Raises:

  • (NoMethodError)


18
19
20
# File 'lib/slingshot/client.rb', line 18

def raise_no_method_error
  raise NoMethodError, "Implement this method in your client class"
end