class GoodData::ExecutionDetail
Attributes
Public Class Methods
Source
# File lib/gooddata/models/execution_detail.rb, line 18 def initialize(json) super @json = json end
Initializes object instance from raw wire JSON
@param json Json used for initialization
Calls superclass method
Public Instance Methods
Source
# File lib/gooddata/models/execution_detail.rb, line 76 def ==(other) other.respond_to?(:uri) && other.uri == uri && other.respond_to?(:to_hash) && other.to_hash == to_hash end
Compares two executions - based on their URI
Source
# File lib/gooddata/models/execution_detail.rb, line 24 def created Time.parse(json['executionDetail']['created']) end
Timestamp when execution was created
Source
# File lib/gooddata/models/execution_detail.rb, line 29 def error? status == :error end
Has execution failed?
Source
# File lib/gooddata/models/execution_detail.rb, line 34 def finished Time.parse(json['executionDetail']['finished']) end
Timestamp when execution was finished
Source
# File lib/gooddata/models/execution_detail.rb, line 39 def log @client.get(json['executionDetail']['links']['log']) end
Log for execution
Source
# File lib/gooddata/models/execution_detail.rb, line 44 def log_filename @client.get(json['executionDetail']['logFileName']) end
Filename of log
Source
# File lib/gooddata/models/execution_detail.rb, line 49 def ok? status == :ok end
Is execution ok?
Source
# File lib/gooddata/models/execution_detail.rb, line 54 def started Time.parse(json['executionDetail']['started']) end
Timestamp when execution was started
Source
# File lib/gooddata/models/execution_detail.rb, line 59 def status json['executionDetail']['status'].downcase.to_sym end
Status of execution
Source
# File lib/gooddata/models/execution_detail.rb, line 64 def updated Time.parse(json['executionDetail']['updated']) end
Timestamp when execution was updated