Sha256: cc7fff288709abc39278a907fa4048c7e818d7f7a90519a2287abb302e48adf5

Contents?: true

Size: 879 Bytes

Versions: 56

Compression:

Stored size: 879 Bytes

Contents

require 'xeroizer/report/cell_xml_helper'

module Xeroizer
  module Report
    class Cell
      
      include CellXmlHelper
      
      attr_accessor :value
      attr_accessor :attributes
      
      public
      
        def initialize
          @attributes = {}
        end
      
        # Return first attribute's ID in the hash. Assumes there is only one as hashes get out of order.
        # In all cases I've seen so far there is only one attribute returned.
        def attribute_id
          @attributes.each { | id, value | return id }
        end
        
        # Return first attribute's value in the hash. Assumes there is only one as hashes get out of order.
        # In all cases I've seen so far there is only one attribute returned.
        def attribute_value
          @attributes.each { | id, value | return value }
        end
      
    end
  end
end

Version data entries

56 entries across 56 versions & 3 rubygems

Version Path
xeroizer-3.0.1 lib/xeroizer/report/cell.rb
xeroizer-3.0.0 lib/xeroizer/report/cell.rb
xeroizer-3-pre-beta-3.0.0.pre.beta lib/xeroizer/report/cell.rb
xeroizer-2.20.0 lib/xeroizer/report/cell.rb
xeroizer-2.19.0 lib/xeroizer/report/cell.rb
xeroizer-2.18.1 lib/xeroizer/report/cell.rb
xeroizer-2.17.1 lib/xeroizer/report/cell.rb
xeroizer-2.16.5 lib/xeroizer/report/cell.rb
xeroizer-2.16.4 lib/xeroizer/report/cell.rb
xeroizer-2.16.3 lib/xeroizer/report/cell.rb
xeroizer-2.16.1 lib/xeroizer/report/cell.rb
xeroizer-2.16.0 lib/xeroizer/report/cell.rb
xeroizer-2.15.9 lib/xeroizer/report/cell.rb
xeroizer-2.15.8 lib/xeroizer/report/cell.rb
xeroizer-2.15.7 lib/xeroizer/report/cell.rb
xeroizer-2.15.6 lib/xeroizer/report/cell.rb
xeroizer-float-2.15.5.2 lib/xeroizer/report/cell.rb
xeroizer-float-2.15.5.1 lib/xeroizer/report/cell.rb
xeroizer-2.15.5 lib/xeroizer/report/cell.rb
xeroizer-float-2.15.3.16 lib/xeroizer/report/cell.rb