Module: Braintree::SuccessfulResultDecorator
- Defined in:
- app/models/braintree/successful_result_decorator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
3 4 5 |
# File 'app/models/braintree/successful_result_decorator.rb', line 3 def self.prepended(base) base.mattr_reader :authorization, :message end |
Instance Method Details
#authorization ⇒ Object
7 8 9 |
# File 'app/models/braintree/successful_result_decorator.rb', line 7 def transaction.id end |
#avs_result ⇒ Object
11 12 13 |
# File 'app/models/braintree/successful_result_decorator.rb', line 11 def avs_result { code: transaction.avs_street_address_response_code }.with_indifferent_access end |
#cvv_result ⇒ Object
15 16 17 |
# File 'app/models/braintree/successful_result_decorator.rb', line 15 def cvv_result { code: transaction.cvv_response_code, message: nil }.with_indifferent_access end |