Class: DaashubAPI::Request
- Inherits:
-
Object
- Object
- DaashubAPI::Request
- Includes:
- HTTParty
- Defined in:
- lib/daashub_api/request.rb
Class Method Summary collapse
- .perform_get(endpoint, access_token, options = {}) ⇒ Object
- .perform_post(endpoint, access_token, options = {}) ⇒ Object
Class Method Details
.perform_get(endpoint, access_token, options = {}) ⇒ Object
12 13 14 |
# File 'lib/daashub_api/request.rb', line 12 def perform_get(endpoint, access_token, = {}) perform(access_token) { get(endpoint, ) } end |
.perform_post(endpoint, access_token, options = {}) ⇒ Object
16 17 18 |
# File 'lib/daashub_api/request.rb', line 16 def perform_post(endpoint, access_token, = {}) perform(access_token) { post(endpoint, ) } end |