Class: Activite::HTTP::Request
- Inherits:
-
Object
- Object
- Activite::HTTP::Request
- Defined in:
- lib/activite/http/request.rb
Instance Method Summary collapse
- #get(path, options = {}) ⇒ Object
-
#initialize(access_token, headers) ⇒ Request
constructor
A new instance of Request.
- #post(path, options = {}) ⇒ Object
Constructor Details
#initialize(access_token, headers) ⇒ Request
Returns a new instance of Request.
10 11 12 13 |
# File 'lib/activite/http/request.rb', line 10 def initialize(access_token, headers) @access_token = access_token @headers = headers end |
Instance Method Details
#get(path, options = {}) ⇒ Object
15 16 17 |
# File 'lib/activite/http/request.rb', line 15 def get(path, = {}) request(:get, path, ) end |
#post(path, options = {}) ⇒ Object
19 20 21 |
# File 'lib/activite/http/request.rb', line 19 def post(path, = {}) request(:post, path, ) end |