Class: BrDanfe::Danfe
- Inherits:
-
Object
- Object
- BrDanfe::Danfe
- Defined in:
- lib/br_danfe/danfe.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(xml) ⇒ Danfe
constructor
A new instance of Danfe.
- #render_pdf ⇒ Object
- #save_pdf(filename) ⇒ Object
Constructor Details
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/br_danfe/danfe.rb', line 3 def @options end |
Instance Method Details
#render_pdf ⇒ Object
18 19 20 21 |
# File 'lib/br_danfe/danfe.rb', line 18 def render_pdf generate @pdf.render end |
#save_pdf(filename) ⇒ Object
13 14 15 16 |
# File 'lib/br_danfe/danfe.rb', line 13 def save_pdf(filename) generate @pdf.render_file filename end |