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/cache.rb,
lib/travis/client/error.rb,
lib/travis/client/commit.rb,
lib/travis/client/entity.rb,
lib/travis/client/states.rb,
lib/travis/client/account.rb,
lib/travis/client/env_var.rb,
lib/travis/client/methods.rb,
lib/travis/client/request.rb,
lib/travis/client/session.rb,
lib/travis/client/ssh_key.rb,
lib/travis/client/artifact.rb,
lib/travis/client/has_uuid.rb,
lib/travis/client/listener.rb,
lib/travis/client/settings.rb,
lib/travis/client/broadcast.rb,
lib/travis/client/namespace.rb,
lib/travis/client/annotation.rb,
lib/travis/client/auto_login.rb,
lib/travis/client/repository.rb,
lib/travis/client/lint_result.rb,
lib/travis/client/restartable.rb,
lib/travis/client/weak_entity.rb,
lib/travis/client/not_loadable.rb,
lib/travis/client/singleton_setting.rb

Defined Under Namespace

Modules: HasUuid, Methods, NotLoadable, Restartable, States Classes: Account, Annotation, Artifact, AutoLogin, Broadcast, Build, Cache, Commit, Entity, EnvVar, Error, Job, LintResult, Listener, Namespace, NotFound, NotLoggedIn, Repository, Request, SSLError, Session, Settings, SingletonSetting, SshKey, User, ValidationFailed, WeakEntity

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



34
35
36
37
# File 'lib/travis/client.rb', line 34

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