Class: PDFGen::DsHash
Instance Method Summary collapse
- #body ⇒ Object
- #columns ⇒ Object
- #each ⇒ Object
-
#initialize(data) ⇒ DsHash
constructor
A new instance of DsHash.
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
#body ⇒ Object
15 16 17 |
# File 'lib/data/ds_hash.rb', line 15 def body @data[:body] end |
#columns ⇒ Object
11 12 13 |
# File 'lib/data/ds_hash.rb', line 11 def columns @data[:columns] end |
#each ⇒ Object
19 20 21 |
# File 'lib/data/ds_hash.rb', line 19 def each self.body.each {|item| yield item} end |