Class: GitLab::Exporter::TrackedResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab_exporter/util.rb

Overview

Simple time wrapper that provides a to_i and wraps the execution result

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



6
7
8
# File 'lib/gitlab_exporter/util.rb', line 6

def result
  @result
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



6
7
8
# File 'lib/gitlab_exporter/util.rb', line 6

def time
  @time
end

Instance Method Details

#to_iObject



7
8
9
# File 'lib/gitlab_exporter/util.rb', line 7

def to_i
  time
end