Class: Dossier::Segment::Rows
- Inherits:
-
Result::Formatted
- Object
- Result::Formatted
- Dossier::Segment::Rows
- Defined in:
- lib/dossier/segment/rows.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#report ⇒ Object
Returns the value of attribute report.
-
#segment ⇒ Object
Returns the value of attribute segment.
-
#segmenter ⇒ Object
Returns the value of attribute segmenter.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(segmenter, segment, definition) ⇒ Rows
constructor
A new instance of Rows.
- #inspect ⇒ Object
- #raw_headers ⇒ Object
Constructor Details
#initialize(segmenter, segment, definition) ⇒ Rows
Returns a new instance of Rows.
6 7 8 9 10 11 |
# File 'lib/dossier/segment/rows.rb', line 6 def initialize(segmenter, segment, definition) self.segmenter = segmenter self.report = segmenter.report self.segment = segment self.definition = definition end |
Instance Attribute Details
#definition ⇒ Object
Returns the value of attribute definition.
4 5 6 |
# File 'lib/dossier/segment/rows.rb', line 4 def definition @definition end |
#report ⇒ Object
Returns the value of attribute report.
4 5 6 |
# File 'lib/dossier/segment/rows.rb', line 4 def report @report end |
#segment ⇒ Object
Returns the value of attribute segment.
4 5 6 |
# File 'lib/dossier/segment/rows.rb', line 4 def segment @segment end |
#segmenter ⇒ Object
Returns the value of attribute segmenter.
4 5 6 |
# File 'lib/dossier/segment/rows.rb', line 4 def segmenter @segmenter end |
Instance Method Details
#each ⇒ Object
19 20 21 |
# File 'lib/dossier/segment/rows.rb', line 19 def each segmenter_data.each { |row| yield format(summarize(truncate(row))) } end |
#inspect ⇒ Object
23 24 25 |
# File 'lib/dossier/segment/rows.rb', line 23 def inspect "#<#{self.class.name}:@rows.count=#{rows.count}>" end |
#raw_headers ⇒ Object
15 16 17 |
# File 'lib/dossier/segment/rows.rb', line 15 def raw_headers segmenter.headers end |