Class: CheckIssuing::Request
- Inherits:
-
Object
- Object
- CheckIssuing::Request
- Includes:
- HTTParty
- Defined in:
- lib/check_issuing/request.rb
Direct Known Subclasses
Instance Method Summary collapse
- #delete(path, options = {}) ⇒ Object
- #get(path, options = {}) ⇒ Object
- #parsed_response ⇒ Object
- #post(path, options = {}) ⇒ Object
- #put(path, options = {}) ⇒ Object
- #response ⇒ Object
Instance Method Details
#delete(path, options = {}) ⇒ Object
23 24 25 26 |
# File 'lib/check_issuing/request.rb', line 23 def delete(path, ={}) set_auth() @response = self.class.delete(CheckIssuing.endpoint + path, ) end |
#get(path, options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/check_issuing/request.rb', line 8 def get(path, ={}) set_auth() @response = self.class.get(CheckIssuing.endpoint + path, ) end |
#parsed_response ⇒ Object
32 33 34 |
# File 'lib/check_issuing/request.rb', line 32 def parsed_response self.response.parsed_response if self.response.present? end |
#post(path, options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/check_issuing/request.rb', line 13 def post(path, ={}) set_auth() @response = self.class.post(CheckIssuing.endpoint + path, ) end |
#put(path, options = {}) ⇒ Object
18 19 20 21 |
# File 'lib/check_issuing/request.rb', line 18 def put(path, ={}) set_auth() @response = self.class.put(CheckIssuing.endpoint + path, ) end |
#response ⇒ Object
28 29 30 |
# File 'lib/check_issuing/request.rb', line 28 def response @response end |