Class: SolidusBraintree::Response

Inherits:
ActiveMerchant::Billing::Response
  • Object
show all
Defined in:
app/models/solidus_braintree/response.rb

Class Method Summary collapse

Class Method Details

.build(result) ⇒ Object

Parameters:

  • result (Braintree::SuccessfulResult, Braintree::ErrorResult)


15
16
17
# File 'app/models/solidus_braintree/response.rb', line 15

def build(result)
  result.success? ? build_success(result) : build_failure(result)
end