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