Class: Boletoman::Boleto
- Inherits:
-
Object
- Object
- Boletoman::Boleto
- Defined in:
- lib/boletoman/boleto.rb
Instance Attribute Summary collapse
-
#pdf_generator_instance ⇒ Object
readonly
Returns the value of attribute pdf_generator_instance.
Instance Method Summary collapse
- #barcode ⇒ Object
-
#initialize(pdf_generator_instance) ⇒ Boleto
constructor
A new instance of Boleto.
- #line ⇒ Object
- #nosso_numero ⇒ Object
- #pdf ⇒ Object
Constructor Details
#initialize(pdf_generator_instance) ⇒ Boleto
Returns a new instance of Boleto.
5 6 7 |
# File 'lib/boletoman/boleto.rb', line 5 def initialize(pdf_generator_instance) @pdf_generator_instance = pdf_generator_instance end |
Instance Attribute Details
#pdf_generator_instance ⇒ Object (readonly)
Returns the value of attribute pdf_generator_instance.
3 4 5 |
# File 'lib/boletoman/boleto.rb', line 3 def pdf_generator_instance @pdf_generator_instance end |
Instance Method Details
#barcode ⇒ Object
13 14 15 |
# File 'lib/boletoman/boleto.rb', line 13 def pdf_generator_instance. end |
#line ⇒ Object
9 10 11 |
# File 'lib/boletoman/boleto.rb', line 9 def line pdf_generator_instance..linha_digitavel end |
#nosso_numero ⇒ Object
17 18 19 |
# File 'lib/boletoman/boleto.rb', line 17 def nosso_numero pdf_generator_instance.nosso_numero_boleto end |
#pdf ⇒ Object
21 22 23 |
# File 'lib/boletoman/boleto.rb', line 21 def pdf pdf_generator_instance.to_pdf end |