Class: Boletoman::Services::Santander::Boleto::Facade

Inherits:
Object
  • Object
show all
Defined in:
lib/boletoman/services/santander/boleto/facade.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (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

#callObject



15
16
17
18
19
20
21
22
23
# File 'lib/boletoman/services/santander/boleto/facade.rb', line 15

def call
  {
    barcode: boleto_response.barcode,
    line: boleto_response.line,
    nosso_numero: boleto_response.nosso_numero,
    nsu: nsu,
    ticket: ticket_response.ticket
  }
end