Class: Slingshot::Client::Base
- Inherits:
-
Object
- Object
- Slingshot::Client::Base
- Defined in:
- lib/slingshot/client.rb
Direct Known Subclasses
Instance Method Summary collapse
- #delete(url) ⇒ Object
- #get(url) ⇒ Object
- #post(url, data) ⇒ Object
- #put(url, data) ⇒ Object
- #raise_no_method_error ⇒ Object
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
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_error ⇒ Object
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 |