Class: Bcash::Api::VerifyReturnResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/bcash/api/verify_return_response.rb

Instance Attribute Summary

Attributes inherited from Response

#body, #code, #http_code, #success

Instance Method Summary collapse

Methods inherited from Response

#errors, #initialize, #messages, #success?

Constructor Details

This class inherits a constructor from Bcash::Api::Response

Instance Method Details

#messageObject



7
8
9
# File 'lib/bcash/api/verify_return_response.rb', line 7

def message
  body
end

#verified?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/bcash/api/verify_return_response.rb', line 3

def verified?
  message == 'VERIFICADO'
end