Class: PAS::Connection
- Inherits:
-
ActiveResource::Connection
- Object
- ActiveResource::Connection
- PAS::Connection
- Defined in:
- lib/pas/connection.rb
Instance Method Summary collapse
- #delete(path, headers = {}) ⇒ Object
- #get(path, headers = {}) ⇒ Object
- #post(path, body = '', headers = {}) ⇒ Object
- #put(path, body = '', headers = {}) ⇒ Object
Instance Method Details
#delete(path, headers = {}) ⇒ Object
8 9 10 |
# File 'lib/pas/connection.rb', line 8 def delete(path, headers = {}) super(merge_signature_to_path(:delete, path), headers) end |
#get(path, headers = {}) ⇒ Object
4 5 6 |
# File 'lib/pas/connection.rb', line 4 def get(path, headers = {}) super(merge_signature_to_path(:get, path), headers) end |
#post(path, body = '', headers = {}) ⇒ Object
16 17 18 |
# File 'lib/pas/connection.rb', line 16 def post(path, body = '', headers = {}) super(merge_signature_to_path(:post, path), body, headers) end |
#put(path, body = '', headers = {}) ⇒ Object
12 13 14 |
# File 'lib/pas/connection.rb', line 12 def put(path, body = '', headers = {}) super(merge_signature_to_path(:put, path), body, headers) end |