Class: BrDanfe::DanfeLib::Base
- Inherits:
-
Object
- Object
- BrDanfe::DanfeLib::Base
- Defined in:
- lib/br_danfe/danfe_lib/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(xmls) ⇒ Base
constructor
A new instance of Base.
- #render_pdf(footer_info = '') ⇒ Object
- #save_pdf(filename, footer_info = '') ⇒ Object
Constructor Details
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/br_danfe/danfe_lib/base.rb', line 4 def @options end |
Instance Method Details
#render_pdf(footer_info = '') ⇒ Object
19 20 21 22 |
# File 'lib/br_danfe/danfe_lib/base.rb', line 19 def render_pdf( = '') generate @document.render end |
#save_pdf(filename, footer_info = '') ⇒ Object
14 15 16 17 |
# File 'lib/br_danfe/danfe_lib/base.rb', line 14 def save_pdf(filename, = '') generate @document.render_file filename end |