class BrDanfe::CceLib::Header

Public Class Methods

new(pdf) click to toggle source
# File lib/br_danfe/cce_lib/header.rb, line 4
def initialize(pdf)
  @pdf = pdf
end

Public Instance Methods

render() click to toggle source
# File lib/br_danfe/cce_lib/header.rb, line 8
def render
  @pdf.box(height: 40) do
    @pdf.text I18n.t('cce.title'), align: :center, size: 25, pad: 6
  end
end