class XeroGateway::Report::Cell

Adds attributes to the cells we're grabbing, since Xero Report Cells use XML like: <Cell>

<Value>Interest Income (270)</Value>
<Attributes>
  <Attribute>
    <Value>e9482110-7245-4a76-bfe2-14500495a076</Value>
    <Id>account</Id>
  </Attribute>
</Attributes>

</Cell>

We delegate to the topmost “<Value>” class and decorate with an “attributes” hash for the “attribute: value” pairs

Attributes

attributes[R]
value[R]

Public Class Methods

new(value, new_attributes = {}) click to toggle source
Calls superclass method
# File lib/xero_gateway/report/cell.rb, line 20
def initialize(value, new_attributes = {})
  @value        = value
  @attributes   = new_attributes
  super(value)
end