Class: PrawnReport::Band

Inherits:
Object
  • Object
show all
Defined in:
lib/bands/band.rb

Direct Known Subclasses

FooterBand, HeaderBand, SummaryBand

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(report, params = {}) ⇒ Band

Returns a new instance of Band.



9
10
11
# File 'lib/bands/band.rb', line 9

def initialize(report, params = {})
  @report = report
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



7
8
9
# File 'lib/bands/band.rb', line 7

def height
  @height
end

#reportObject

Returns the value of attribute report.



7
8
9
# File 'lib/bands/band.rb', line 7

def report
  @report
end

Class Method Details

.heightObject



19
20
21
# File 'lib/bands/band.rb', line 19

def self.height
  20
end

Instance Method Details

#drawObject



13
14
15
# File 'lib/bands/band.rb', line 13

def draw
  internal_draw
end

#internal_drawObject



17
# File 'lib/bands/band.rb', line 17

def internal_draw; end