Module: Passport::Oauth::Restful::InstanceMethods
- Defined in:
- lib/passport/oauth/client/restful.rb
Instance Method Summary collapse
- #delete(path, headers = {}) ⇒ Object
- #get(path, headers = {}) ⇒ Object
- #head(path, headers = {}) ⇒ Object
- #post(path, body = "", headers = {}) ⇒ Object
- #put(path, body = "", headers = {}) ⇒ Object
Instance Method Details
#delete(path, headers = {}) ⇒ Object
30 31 32 |
# File 'lib/passport/oauth/client/restful.rb', line 30 def delete(path, headers = {}) access_token.delete(path, headers) end |
#get(path, headers = {}) ⇒ Object
14 15 16 |
# File 'lib/passport/oauth/client/restful.rb', line 14 def get(path, headers = {}) access_token.get(path, headers) end |
#head(path, headers = {}) ⇒ Object
22 23 24 |
# File 'lib/passport/oauth/client/restful.rb', line 22 def head(path, headers = {}) access_token.head(path, headers) end |
#post(path, body = "", headers = {}) ⇒ Object
18 19 20 |
# File 'lib/passport/oauth/client/restful.rb', line 18 def post(path, body = "", headers = {}) access_token.post(path, body, headers) end |
#put(path, body = "", headers = {}) ⇒ Object
26 27 28 |
# File 'lib/passport/oauth/client/restful.rb', line 26 def put(path, body = "", headers = {}) access_token.put(path, body, headers) end |