class XingApi::Base

Public Class Methods

request(http_verb, url, options = {}) click to toggle source
# 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 = {}) click to toggle source
# 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

Private Class Methods

default_client() click to toggle source
# File lib/xing_api/base.rb, line 16
def default_client
  XingApi::Client.new
end