Module: Phocoder

Defined in:
lib/phocoder/http/net_http.rb,
lib/phocoder/job.rb,
lib/phocoder/base.rb,
lib/phocoder/http.rb,
lib/phocoder/errors.rb,
lib/phocoder/phocoder.rb,
lib/phocoder/response.rb,
lib/phocoder/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

Class Method Summary collapse

Class Method Details

.api_keyObject



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

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

.base_url(env = nil) ⇒ Object



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

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