Class: Buildbox::Build

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/buildbox/build.rb

Instance Method Summary collapse

Instance Method Details

#finished?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/buildbox/build.rb', line 14

def finished?
  !finished_at.nil?
end

#namespaceObject



18
19
20
# File 'lib/buildbox/build.rb', line 18

def namespace
  "#{project.team.id}/#{project.id}"
end

#started?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/buildbox/build.rb', line 10

def started?
  !started_at.nil?
end

#success?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/buildbox/build.rb', line 6

def success?
  exit_status == 0
end