Class: CQ::RequestClient

Inherits:
Object
  • Object
show all
Defined in:
lib/cq/request_client.rb

Direct Known Subclasses

HttpClient

Instance Method Summary collapse

Instance Method Details

#request(*args) ⇒ Object

Raises:



8
9
10
11
12
# File 'lib/cq/request_client.rb', line 8

def request(*args)
  response = make_request(*args)
  raise HTTPError.new(response) unless response.kind_of?(Net::HTTPSuccess)
  response
end