Class: BrDanfe::DanfeLib::NfeLib::Issqn
- Inherits:
-
Object
- Object
- BrDanfe::DanfeLib::NfeLib::Issqn
- Defined in:
- lib/br_danfe/danfe_lib/nfe_lib/issqn.rb
Constant Summary collapse
- Y_POSITION =
25.72 + SPACE_BETWEEN_GROUPS
Instance Method Summary collapse
-
#initialize(pdf, xml) ⇒ Issqn
constructor
A new instance of Issqn.
- #render ⇒ Object
Constructor Details
#initialize(pdf, xml) ⇒ Issqn
Returns a new instance of Issqn.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/br_danfe/danfe_lib/nfe_lib/issqn.rb', line 7 def initialize(pdf, xml) @pdf = pdf @xml = xml @title = Y_POSITION - 0.42 @y_position = Y_POSITION @serv = 'total/ISSQNtot/vServ' @bc = 'total/ISSQNtot/vBC' @iss = 'total/ISSQNtot/vISS' end |
Instance Method Details
#render ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/br_danfe/danfe_lib/nfe_lib/issqn.rb', line 19 def render if can_render? @pdf.ititle 0.42, 10.00, 0.75, @title, 'issqn.title' @pdf.lbox LINE_HEIGHT, 4.64, 0.75, @y_position, @xml, 'emit/IM' @pdf.lnumeric LINE_HEIGHT, 5.14, 5.39, @y_position, @xml, @serv @pdf.lnumeric LINE_HEIGHT, 5.14, 10.53, @y_position, @xml, @bc @pdf.lnumeric LINE_HEIGHT, 4.64, 15.67, @y_position, @xml, @iss end end |