class Xeroizer::Report::Cell

Attributes

attributes[RW]
value[RW]

Public Class Methods

new() click to toggle source
# File lib/xeroizer/report/cell.rb, line 14
def initialize
  @attributes = {}
end

Public Instance Methods

attribute_id() click to toggle source

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.

# File lib/xeroizer/report/cell.rb, line 20
def attribute_id
  @attributes.each { | id, value | return id }
end
attribute_value() click to toggle source

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.

# File lib/xeroizer/report/cell.rb, line 26
def attribute_value
  @attributes.each { | id, value | return value }
end