Module: Travis::Client

Defined in:
lib/travis/client.rb,
lib/travis/client/job.rb,
lib/travis/client/user.rb,
lib/travis/client/build.rb,
lib/travis/client/error.rb,
lib/travis/client/commit.rb,
lib/travis/client/entity.rb,
lib/travis/client/states.rb,
lib/travis/client/worker.rb,
lib/travis/client/methods.rb,
lib/travis/client/session.rb,
lib/travis/client/artifact.rb,
lib/travis/client/namespace.rb,
lib/travis/client/repository.rb

Defined Under Namespace

Modules: Methods, States Classes: Artifact, Build, Commit, Entity, Error, Job, Namespace, NotFound, Repository, Session, User, Worker

Constant Summary collapse

ORG_URI =
'https://api.travis-ci.org/'
PRO_URI =
'https://api.travis-ci.com/'

Class Method Summary collapse

Class Method Details

.new(options = {}) ⇒ Object


21
22
23
24
# File 'lib/travis/client.rb', line 21

def self.new(options = {})
  options['uri'] ||= ORG_URI if options.is_a? Hash
  Session.new(options)
end