Class: XingApi::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/xing_api/base.rb

Class Method Summary collapse

Class Method Details

.request(http_verb, url, options = {}) ⇒ Object



4
5
6
7
# File 'lib/xing_api/base.rb', line 4

def request(http_verb, url, options = {})
  client = options.delete(:client) || default_client
  client.request(http_verb, url, options)
end

.request_with_body(http_verb, url, body_hash, options = {}) ⇒ Object



9
10
11
12
# File 'lib/xing_api/base.rb', line 9

def request_with_body(http_verb, url, body_hash, options = {})
  client = options.delete(:client) || default_client
  client.request_with_body(http_verb, url, body_hash)
end