Class: IletimerkeziSdk::Http::HttpClientInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/iletimerkezi_sdk/http/http_client_interface.rb

Direct Known Subclasses

HttpClient

Instance Method Summary collapse

Instance Method Details

#get(endpoint, options = {}) ⇒ Object

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/iletimerkezi_sdk/http/http_client_interface.rb', line 8

def get(endpoint, options = {})
  raise NotImplementedError, "#{self.class} must implement get method"
end

#get_bodyObject

Raises:

  • (NotImplementedError)


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_payloadObject

Raises:

  • (NotImplementedError)


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_codeObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/iletimerkezi_sdk/http/http_client_interface.rb', line 4

def post(endpoint, options = {})
  raise NotImplementedError, "#{self.class} must implement post method"
end