Class: BrDanfe::CceLib::NfeKey
- Inherits:
-
Object
- Object
- BrDanfe::CceLib::NfeKey
- Defined in:
- lib/br_danfe/cce_lib/nfe_key.rb
Instance Method Summary collapse
-
#initialize(pdf, xml) ⇒ NfeKey
constructor
A new instance of NfeKey.
- #render ⇒ Object
Constructor Details
#initialize(pdf, xml) ⇒ NfeKey
Returns a new instance of NfeKey.
4 5 6 7 |
# File 'lib/br_danfe/cce_lib/nfe_key.rb', line 4 def initialize(pdf, xml) @pdf = pdf @xml = Nokogiri::XML(xml) end |
Instance Method Details
#render ⇒ Object
9 10 11 12 13 14 |
# File 'lib/br_danfe/cce_lib/nfe_key.rb', line 9 def render @pdf.box(height: 36) do @pdf.text I18n.t('cce.key'), size: 8, style: :bold @pdf.text nfe_key, pad: 5 end end |