Class: DataQualityReport::Entry
- Defined in:
- lib/jirametrics/data_quality_report.rb
Instance Attribute Summary collapse
-
#issue ⇒ Object
readonly
Returns the value of attribute issue.
-
#problems ⇒ Object
readonly
Returns the value of attribute problems.
-
#started ⇒ Object
readonly
Returns the value of attribute started.
-
#stopped ⇒ Object
readonly
Returns the value of attribute stopped.
Instance Method Summary collapse
-
#initialize(started:, stopped:, issue:) ⇒ Entry
constructor
A new instance of Entry.
- #report(problem_key: nil, detail: nil) ⇒ Object
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
#issue ⇒ Object (readonly)
Returns the value of attribute issue.
8 9 10 |
# File 'lib/jirametrics/data_quality_report.rb', line 8 def issue @issue end |
#problems ⇒ Object (readonly)
Returns the value of attribute problems.
8 9 10 |
# File 'lib/jirametrics/data_quality_report.rb', line 8 def problems @problems end |
#started ⇒ Object (readonly)
Returns the value of attribute started.
8 9 10 |
# File 'lib/jirametrics/data_quality_report.rb', line 8 def started @started end |
#stopped ⇒ Object (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 |