Class: Keboola::GoodDataWriter::Job

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/keboola/gooddata_writer/job.rb

Instance Method Summary collapse

Instance Method Details

#finished?Boolean

Returns:

  • (Boolean)

15
16
17
# File 'lib/keboola/gooddata_writer/job.rb', line 15

def finished?
  %w[cancelled success error warning terminated].include?(status)
end

#ok?Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/keboola/gooddata_writer/job.rb', line 7

def ok?
  %w[ok].include?(status)
end

#pending?Boolean

Returns:

  • (Boolean)

19
20
21
# File 'lib/keboola/gooddata_writer/job.rb', line 19

def pending?
  %w[waiting processing terminating].include?(status)
end

#success?Boolean

Returns:

  • (Boolean)

11
12
13
# File 'lib/keboola/gooddata_writer/job.rb', line 11

def success?
  %w[success].include?(status)
end