Class: Boletoman::Services::Santander::Query::Facade

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nsu) ⇒ Facade

Returns a new instance of Facade.



11
12
13
# File 'lib/boletoman/services/santander/query/facade.rb', line 11

def initialize(nsu)
  @nsu = nsu
end

Instance Attribute Details

#nsuObject (readonly)

Returns the value of attribute nsu.



9
10
11
# File 'lib/boletoman/services/santander/query/facade.rb', line 9

def nsu
  @nsu
end

Instance Method Details

#callObject



15
16
17
# File 'lib/boletoman/services/santander/query/facade.rb', line 15

def call
  { barcode: query_response.barcode, line: query_response.line }
end