Sha256: 7a5ac5c02e9bacd267b94df7ce8167f7c8fd3259be65a2df7d761b8a04f46e91
Contents?: true
Size: 670 Bytes
Versions: 2
Compression:
Stored size: 670 Bytes
Contents
module Braintree # See http://www.braintreepayments.com/docs/ruby/general/result_objects class SuccessfulResult include BaseModule def initialize(attributes = {}) # :nodoc: @attrs = attributes.keys singleton_class.class_eval do attributes.each do |key, value| define_method key do value end end end end def inspect # :nodoc: inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" } "#<#{self.class} #{inspected_attributes.join(" ")}>" end def payer_authentication_required? false end def success? true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.10.3 | lib/braintree/successful_result.rb |
braintree-2.10.2 | lib/braintree/successful_result.rb |