Module: HealthGraph::API
- Included in:
- Model
- Defined in:
- lib/health_graph/api.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
Instance Method Summary collapse
- #delete(path, accept_header, params = {}) ⇒ Object
- #get(path, accept_header, params = {}) ⇒ Object
- #post(path, accept_header, params = {}) ⇒ Object
- #put(path, accept_header, params = {}) ⇒ Object
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/health_graph/api.rb', line 3 def access_token @access_token end |
Instance Method Details
#delete(path, accept_header, params = {}) ⇒ Object
17 18 19 |
# File 'lib/health_graph/api.rb', line 17 def delete(path, accept_header, params = {}) request(:delete, accept_header, path, params) end |
#get(path, accept_header, params = {}) ⇒ Object
5 6 7 |
# File 'lib/health_graph/api.rb', line 5 def get(path, accept_header, params = {}) request(:get, accept_header, path, params) end |
#post(path, accept_header, params = {}) ⇒ Object
9 10 11 |
# File 'lib/health_graph/api.rb', line 9 def post(path, accept_header, params = {}) request(:post, accept_header, path, params) end |
#put(path, accept_header, params = {}) ⇒ Object
13 14 15 |
# File 'lib/health_graph/api.rb', line 13 def put(path, accept_header, params = {}) request(:put, accept_header, path, params) end |