class Credigy::BoletoResponse
Public Instance Methods
pdf()
click to toggle source
# File lib/credigy/boleto_response.rb, line 7 def pdf raise(BoletoNotAvailable, body) if boleto_not_available? Base64.decode64(body[:boleto]) end
sub_root_key()
click to toggle source
# File lib/credigy/boleto_response.rb, line 13 def sub_root_key :ws_result_boleto end
Private Instance Methods
boleto_not_available?()
click to toggle source
# File lib/credigy/boleto_response.rb, line 19 def boleto_not_available? body[:boleto].nil? end