Module: Cloudhdr

Defined in:
lib/cloudhdr/http/net_http.rb,
lib/cloudhdr.rb,
lib/cloudhdr/job.rb,
lib/cloudhdr/base.rb,
lib/cloudhdr/http.rb,
lib/cloudhdr/errors.rb,
lib/cloudhdr/version.rb,
lib/cloudhdr/cloudhdr.rb,
lib/cloudhdr/response.rb,
lib/cloudhdr/http/typhoeus.rb

Overview

Ruby's Net/HTTP Sucks Borrowed root cert checking from redcorundum.blogspot.com/2008/03/ssl-certificates-and-nethttps.html

Defined Under Namespace

Classes: Base, Error, HTTP, HTTPError, Job, Response

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.api_keyObject


9
10
11
# File 'lib/cloudhdr/cloudhdr.rb', line 9

def self.api_key
  @@api_key || ENV['CLOUDHDR_API_KEY']
end

.base_url(env = nil) ⇒ Object


13
14
15
# File 'lib/cloudhdr/cloudhdr.rb', line 13

def self.base_url(env=nil)
  @@base_url
end