Class: Boletoman::Services::Santander::BillingResponse

Inherits:
Boletoman::Services::Soap::Response show all
Defined in:
lib/boletoman/services/santander/billing_response.rb

Instance Attribute Summary

Attributes inherited from Boletoman::Services::Soap::Response

#raw_response, #requester

Instance Method Summary collapse

Methods inherited from Boletoman::Services::Soap::Response

#body, #initialize

Constructor Details

This class inherits a constructor from Boletoman::Services::Soap::Response

Instance Method Details

#barcodeObject



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

def barcode
  body.dig(:return, :titulo, :cd_barra)
end

#lineObject



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

def line
  body.dig(:return, :titulo, :lin_dig)
end

#nosso_numeroObject



19
20
21
# File 'lib/boletoman/services/santander/billing_response.rb', line 19

def nosso_numero
  body.dig(:return, :titulo, :nosso_numero)
end

#success?Boolean



7
8
9
# File 'lib/boletoman/services/santander/billing_response.rb', line 7

def success?
  barcode.present?
end