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/account.rb,
lib/travis/client/methods.rb,
lib/travis/client/session.rb,
lib/travis/client/artifact.rb,
lib/travis/client/listener.rb,
lib/travis/client/broadcast.rb,
lib/travis/client/namespace.rb,
lib/travis/client/repository.rb,
lib/travis/client/restartable.rb

Defined Under Namespace

Modules: Methods, Restartable, States Classes: Account, Artifact, Broadcast, Build, Commit, Entity, Error, Job, Listener, 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


25
26
27
28
# File 'lib/travis/client.rb', line 25

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