Class: BrDanfe::Mdfe
- Inherits:
-
Object
- Object
- BrDanfe::Mdfe
- Defined in:
- lib/br_danfe/mdfe.rb
Instance Attribute Summary collapse
-
#logo_options ⇒ Object
readonly
Returns the value of attribute logo_options.
Instance Method Summary collapse
-
#initialize(xml) ⇒ Mdfe
constructor
A new instance of Mdfe.
- #render_pdf ⇒ Object
- #save_pdf(filename) ⇒ Object
Constructor Details
Instance Attribute Details
#logo_options ⇒ Object (readonly)
Returns the value of attribute logo_options.
7 8 9 |
# File 'lib/br_danfe/mdfe.rb', line 7 def @logo_options end |
Instance Method Details
#render_pdf ⇒ Object
20 21 22 23 |
# File 'lib/br_danfe/mdfe.rb', line 20 def render_pdf generate @pdf.render end |
#save_pdf(filename) ⇒ Object
15 16 17 18 |
# File 'lib/br_danfe/mdfe.rb', line 15 def save_pdf(filename) generate @pdf.render_file(filename) end |