Class: BrDanfe::CceLib::Footer

Inherits:
Object
  • Object
show all
Defined in:
lib/br_danfe/cce_lib/footer.rb

Instance Method Summary collapse

Constructor Details

#initialize(pdf) ⇒ Footer

Returns a new instance of Footer.



4
5
6
# File 'lib/br_danfe/cce_lib/footer.rb', line 4

def initialize(pdf)
  @pdf = pdf
end

Instance Method Details

#renderObject



8
9
10
11
12
# File 'lib/br_danfe/cce_lib/footer.rb', line 8

def render
  @pdf.box(height: 110) do
    @pdf.text I18n.t('cce.legal_note')
  end
end