Class: DataQualityReport::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/jirametrics/data_quality_report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(started:, stopped:, issue:) ⇒ Entry

Returns a new instance of Entry.



10
11
12
13
14
15
# File 'lib/jirametrics/data_quality_report.rb', line 10

def initialize started:, stopped:, issue:
  @started = started
  @stopped = stopped
  @issue = issue
  @problems = []
end

Instance Attribute Details

#issueObject (readonly)

Returns the value of attribute issue.



8
9
10
# File 'lib/jirametrics/data_quality_report.rb', line 8

def issue
  @issue
end

#problemsObject (readonly)

Returns the value of attribute problems.



8
9
10
# File 'lib/jirametrics/data_quality_report.rb', line 8

def problems
  @problems
end

#startedObject (readonly)

Returns the value of attribute started.



8
9
10
# File 'lib/jirametrics/data_quality_report.rb', line 8

def started
  @started
end

#stoppedObject (readonly)

Returns the value of attribute stopped.



8
9
10
# File 'lib/jirametrics/data_quality_report.rb', line 8

def stopped
  @stopped
end

Instance Method Details

#report(problem_key: nil, detail: nil) ⇒ Object



17
18
19
# File 'lib/jirametrics/data_quality_report.rb', line 17

def report problem_key: nil, detail: nil
  @problems << [problem_key, detail]
end