Sha256: 35d70f2de1f2f5c01d80df07fe934b9c4cd1212356a7931832fefa507655e901

Contents?: true

Size: 375 Bytes

Versions: 10

Compression:

Stored size: 375 Bytes

Contents

module Braintree
  # See http://www.braintreepaymentsolutions.com/docs/ruby/general/validation_errors
  class ValidationError
    include BaseModule

    attr_reader :attribute, :code, :message

    def initialize(attributes)
      set_instance_variables_from_hash attributes
    end

    def inspect # :nodoc:
      "#<#{self.class} (#{code}) #{message}>"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
braintree-2.10.0 lib/braintree/validation_error.rb
braintree-2.9.1 lib/braintree/validation_error.rb
braintree-2.8.0 lib/braintree/validation_error.rb
braintree-2.7.0 lib/braintree/validation_error.rb
braintree-2.6.3 lib/braintree/validation_error.rb
braintree-2.6.2 lib/braintree/validation_error.rb
braintree-2.6.1 lib/braintree/validation_error.rb
braintree-2.6.0 lib/braintree/validation_error.rb
braintree-2.5.2 lib/braintree/validation_error.rb
braintree-2.5.1 lib/braintree/validation_error.rb