Class: Boletoman::Services::Santander::Boleto::Facade
- Inherits:
-
Object
- Object
- Boletoman::Services::Santander::Boleto::Facade
- Defined in:
- lib/boletoman/services/santander/boleto/facade.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(data) ⇒ Facade
constructor
A new instance of Facade.
Constructor Details
#initialize(data) ⇒ Facade
Returns a new instance of Facade.
11 12 13 |
# File 'lib/boletoman/services/santander/boleto/facade.rb', line 11 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/boletoman/services/santander/boleto/facade.rb', line 9 def data @data end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/boletoman/services/santander/boleto/facade.rb', line 15 def call { barcode: boleto_response., line: boleto_response.line, nosso_numero: boleto_response.nosso_numero, nsu: nsu, ticket: ticket_response.ticket } end |