Class: Qc::Compile

Inherits:
Struct
  • Object
show all
Defined in:
lib/qc/compile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/qc/compile.rb', line 2

def id
  @id
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



2
3
4
# File 'lib/qc/compile.rb', line 2

def state
  @state
end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/qc/compile.rb', line 11

def error?
  state == 'BuildError'
end

#in_queue?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/qc/compile.rb', line 3

def in_queue?
  state == 'InQueue'
end

#success?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/qc/compile.rb', line 7

def success?
  state == 'BuildSuccess'
end