Class: PDFGen::DsHash

Inherits:
DsBase
  • Object
show all
Defined in:
lib/data/ds_hash.rb

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ DsHash

Returns a new instance of DsHash.



7
8
9
# File 'lib/data/ds_hash.rb', line 7

def initialize(data)
  @data = data
end

Instance Method Details

#bodyObject



15
16
17
# File 'lib/data/ds_hash.rb', line 15

def body
  @data[:body]
end

#columnsObject



11
12
13
# File 'lib/data/ds_hash.rb', line 11

def columns
  @data[:columns]
end

#eachObject



19
20
21
# File 'lib/data/ds_hash.rb', line 19

def each
  self.body.each {|item| yield item}
end