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
#initialize(xmls) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 12 |
# File 'lib/br_danfe/danfe_lib/base.rb', line 6 def initialize(xmls) @xmls = xmls @document = document = BrDanfe::Logo::Config.new create_watermark end |
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 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 |