Module: Heroku::Client

Defined in:
lib/heroku-client.rb,
lib/heroku-client/api.rb,
lib/heroku-client/http.rb,
lib/heroku-client/version.rb,
lib/heroku-client/api_test.rb,
lib/heroku-client/json_util.rb,
lib/heroku-client/heroku_obj.rb

Defined Under Namespace

Modules: Http Classes: Api, ApiTest, ForbiddenError, HerokuObj, JSONUtil, LockedError, NotFoundError, PaymentRequiredError, PreConditionFailedError, UnauthorizedError, UnknownError, UnprocessableEntityError

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.create(apikey) ⇒ Object



13
14
15
16
17
# File 'lib/heroku-client.rb', line 13

def self.create(apikey)
  return ApiTest.new if @test_mode

  Api.new(apikey)
end

.test_mode=(test_mode) ⇒ Object



19
20
21
# File 'lib/heroku-client.rb', line 19

def self.test_mode=(test_mode)
  @test_mode = test_mode
end