Class: Travis::Build

Inherits:
Client::Entity show all
Defined in:
lib/travis/client/generated.rb

Instance Attribute Summary

Attributes inherited from Client::Entity

#session

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Client::Entity

#[], add_action, add_attribute, add_related_action, for_session, #initialize, #inspect, #merge!, #permission?, #to_entity, #to_h

Constructor Details

This class inherits a constructor from Travis::Client::Entity

Class Method Details

.cancel(params = {}) ⇒ Object



357
358
359
# File 'lib/travis/client/generated.rb', line 357

def self.cancel(params = {})
  # This is a placeholder.
end

.find(params = {}) ⇒ Object



353
354
355
# File 'lib/travis/client/generated.rb', line 353

def self.find(params = {})
  # This is a placeholder.
end

.restart(params = {}) ⇒ Object



361
362
363
# File 'lib/travis/client/generated.rb', line 361

def self.restart(params = {})
  # This is a placeholder.
end

Instance Method Details

#branchObject

The branch the build is associated with.



390
391
392
# File 'lib/travis/client/generated.rb', line 390

def branch
  # This is a placeholder.
end

#branch?Boolean

Wheather or not #branch returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


483
484
485
# File 'lib/travis/client/generated.rb', line 483

def branch?
  # This is a placeholder.
end

#cancel(params = {}) ⇒ Object



516
517
518
# File 'lib/travis/client/generated.rb', line 516

def cancel(params = {})
  # This is a placeholder.
end

#commitObject

The commit the build is associated with.



488
489
490
# File 'lib/travis/client/generated.rb', line 488

def commit
  # This is a placeholder.
end

#commit?Boolean

Wheather or not #commit returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


493
494
495
# File 'lib/travis/client/generated.rb', line 493

def commit?
  # This is a placeholder.
end

#durationObject

Wall clock time in seconds.



420
421
422
# File 'lib/travis/client/generated.rb', line 420

def duration
  # This is a placeholder.
end

#duration?Boolean

Wheather or not #duration returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


425
426
427
# File 'lib/travis/client/generated.rb', line 425

def duration?
  # This is a placeholder.
end

#event_typeObject

Event that triggered the build.



430
431
432
# File 'lib/travis/client/generated.rb', line 430

def event_type
  # This is a placeholder.
end

#event_type?Boolean

Wheather or not #event_type returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


435
436
437
# File 'lib/travis/client/generated.rb', line 435

def event_type?
  # This is a placeholder.
end

#find(params = {}) ⇒ Object



365
366
367
# File 'lib/travis/client/generated.rb', line 365

def find(params = {})
  # This is a placeholder.
end

#find_jobs(params = {}) ⇒ Object



528
529
530
# File 'lib/travis/client/generated.rb', line 528

def find_jobs(params = {})
  # This is a placeholder.
end

#finished_atObject

When the build finished.



473
474
475
# File 'lib/travis/client/generated.rb', line 473

def finished_at
  # This is a placeholder.
end

#finished_at?Boolean

Wheather or not #finished_at returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


478
479
480
# File 'lib/travis/client/generated.rb', line 478

def finished_at?
  # This is a placeholder.
end

#idObject

Value uniquely identifying the build.



375
376
377
# File 'lib/travis/client/generated.rb', line 375

def id
  # This is a placeholder.
end

#id?Boolean

Wheather or not #id returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


400
401
402
# File 'lib/travis/client/generated.rb', line 400

def id?
  # This is a placeholder.
end

#jobsObject

List of jobs that are part of the build’s matrix.



498
499
500
# File 'lib/travis/client/generated.rb', line 498

def jobs
  # This is a placeholder.
end

#jobs?Boolean

Wheather or not #jobs returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


503
504
505
# File 'lib/travis/client/generated.rb', line 503

def jobs?
  # This is a placeholder.
end

#jobs_find(params = {}) ⇒ Object



524
525
526
# File 'lib/travis/client/generated.rb', line 524

def jobs_find(params = {})
  # This is a placeholder.
end

#numberObject

Incremental number for a repository’s builds.



380
381
382
# File 'lib/travis/client/generated.rb', line 380

def number
  # This is a placeholder.
end

#number?Boolean

Wheather or not #number returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


410
411
412
# File 'lib/travis/client/generated.rb', line 410

def number?
  # This is a placeholder.
end

#previous_stateObject

State of the previous build (useful to see if state changed)



440
441
442
# File 'lib/travis/client/generated.rb', line 440

def previous_state
  # This is a placeholder.
end

#previous_state?Boolean

Wheather or not #previous_state returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


445
446
447
# File 'lib/travis/client/generated.rb', line 445

def previous_state?
  # This is a placeholder.
end

#pull_request_numberObject



458
459
460
# File 'lib/travis/client/generated.rb', line 458

def pull_request_number
  # This is a placeholder.
end

#pull_request_number?Boolean

Wheather or not #pull_request_number returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


463
464
465
# File 'lib/travis/client/generated.rb', line 463

def pull_request_number?
  # This is a placeholder.
end

#pull_request_titleObject



449
450
451
# File 'lib/travis/client/generated.rb', line 449

def pull_request_title
  # This is a placeholder.
end

#pull_request_title?Boolean

Wheather or not #pull_request_title returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


454
455
456
# File 'lib/travis/client/generated.rb', line 454

def pull_request_title?
  # This is a placeholder.
end

#repositoryObject

GitHub user or organization the build belongs to.



385
386
387
# File 'lib/travis/client/generated.rb', line 385

def repository
  # This is a placeholder.
end

#repository?Boolean

Wheather or not #repository returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


405
406
407
# File 'lib/travis/client/generated.rb', line 405

def repository?
  # This is a placeholder.
end

#restart(params = {}) ⇒ Object



520
521
522
# File 'lib/travis/client/generated.rb', line 520

def restart(params = {})
  # This is a placeholder.
end

#stagesObject



507
508
509
# File 'lib/travis/client/generated.rb', line 507

def stages
  # This is a placeholder.
end

#stages?Boolean

Wheather or not #stages returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


512
513
514
# File 'lib/travis/client/generated.rb', line 512

def stages?
  # This is a placeholder.
end

#started_atObject

When the build started.



395
396
397
# File 'lib/travis/client/generated.rb', line 395

def started_at
  # This is a placeholder.
end

#started_at?Boolean

Wheather or not #started_at returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


468
469
470
# File 'lib/travis/client/generated.rb', line 468

def started_at?
  # This is a placeholder.
end

#stateObject

Current state of the build.



370
371
372
# File 'lib/travis/client/generated.rb', line 370

def state
  # This is a placeholder.
end

#state?Boolean

Wheather or not #state returns a truthy value (anything but ‘nil` or `false`).

Returns:

  • (Boolean)


415
416
417
# File 'lib/travis/client/generated.rb', line 415

def state?
  # This is a placeholder.
end