Sha256: 61e50c4a079e5c9753a79cb84221bb4dea60db5d3d8d8feeb95d6ef850fc94ba

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module Core
    module Shape
      module StackView
        class Format < Basic::Format
          attr_reader :rows

          def initialize(*)
            super
            initialize_rows
          end

          private

          def initialize_rows
            @rows = []
            attributes['rows'].each do |row|
              @rows << StackView::RowFormat.new(row)
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinreports-0.12.1 lib/thinreports/core/shape/stack_view/format.rb
thinreports-0.12.0 lib/thinreports/core/shape/stack_view/format.rb