Sha256: 2a9074868043a395edc74a505d11dac865cb2e43770be4a0aceca397fc8b4dad
Contents?: true
Size: 844 Bytes
Versions: 1
Compression:
Stored size: 844 Bytes
Contents
require 'xeroizer/report/row/xml_helper' module Xeroizer module Report class Row include RowXmlHelper attr_reader :report attr_accessor :type attr_accessor :title attr_accessor :rows attr_accessor :cells attr_accessor :parent attr_accessor :header public def initialize(report) @rows = [] @cells = [] @report = report end def header?; @type == 'Header'; end def summary?; @type == 'SummaryRow'; end def section?; @type == 'Section'; end def row?; @type == 'Row'; end def child? !parent.nil? end def parent? rows.size > 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xeroizer-0.2.0 | lib/xeroizer/report/row/row.rb |