Class: IletimerkeziSdk::Http::HttpClientInterface
- Inherits:
-
Object
- Object
- IletimerkeziSdk::Http::HttpClientInterface
- Defined in:
- lib/iletimerkezi_sdk/http/http_client_interface.rb
Direct Known Subclasses
Instance Method Summary collapse
- #get(endpoint, options = {}) ⇒ Object
- #get_body ⇒ Object
- #get_payload ⇒ Object
- #get_status_code ⇒ Object
- #post(endpoint, options = {}) ⇒ Object
Instance Method Details
#get(endpoint, options = {}) ⇒ Object
8 9 10 |
# File 'lib/iletimerkezi_sdk/http/http_client_interface.rb', line 8 def get(endpoint, = {}) raise NotImplementedError, "#{self.class} must implement get method" end |
#get_body ⇒ Object
16 17 18 |
# File 'lib/iletimerkezi_sdk/http/http_client_interface.rb', line 16 def get_body raise NotImplementedError, "#{self.class} must implement get_body method" end |
#get_payload ⇒ Object
12 13 14 |
# File 'lib/iletimerkezi_sdk/http/http_client_interface.rb', line 12 def get_payload raise NotImplementedError, "#{self.class} must implement get_payload method" end |
#get_status_code ⇒ Object
20 21 22 |
# File 'lib/iletimerkezi_sdk/http/http_client_interface.rb', line 20 def get_status_code raise NotImplementedError, "#{self.class} must implement get_status_code method" end |
#post(endpoint, options = {}) ⇒ Object
4 5 6 |
# File 'lib/iletimerkezi_sdk/http/http_client_interface.rb', line 4 def post(endpoint, = {}) raise NotImplementedError, "#{self.class} must implement post method" end |