Module: FidorApi::Connectivity::Connection
- Extended by:
- Connection
- Included in:
- Connection
- Defined in:
- lib/fidor_api/connectivity/connection.rb
Defined Under Namespace
Classes: Response
Instance Method Summary collapse
- #delete(path, options = {}) ⇒ Object
- #get(path, options = {}) ⇒ Object
- #post(path, options = {}) ⇒ Object
- #put(path, options = {}) ⇒ Object
- #with_token(token) ⇒ Object
Instance Method Details
#delete(path, options = {}) ⇒ Object
28 29 30 |
# File 'lib/fidor_api/connectivity/connection.rb', line 28 def delete(path, ={}) request(:delete, path, ) end |
#get(path, options = {}) ⇒ Object
16 17 18 |
# File 'lib/fidor_api/connectivity/connection.rb', line 16 def get(path, ={}) request(:get, path, ) end |
#post(path, options = {}) ⇒ Object
20 21 22 |
# File 'lib/fidor_api/connectivity/connection.rb', line 20 def post(path, ={}) request(:post, path, ) end |
#put(path, options = {}) ⇒ Object
24 25 26 |
# File 'lib/fidor_api/connectivity/connection.rb', line 24 def put(path, ={}) request(:put, path, ) end |
#with_token(token) ⇒ Object
32 33 34 35 |
# File 'lib/fidor_api/connectivity/connection.rb', line 32 def with_token(token) self.access_token = token yield end |