Sha256: 23b0161a0fce09891f8d80d1a2017b86ba0fb2592e17e41968668f9cf4c3e13f

Contents?: true

Size: 320 Bytes

Versions: 10

Compression:

Stored size: 320 Bytes

Contents

module Braintree
  class ValidationError
    include BaseModule

    attr_reader :attribute
    attr_reader :code
    attr_reader :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.90.0 lib/braintree/validation_error.rb
braintree-2.89.0 lib/braintree/validation_error.rb
braintree-2.88.0 lib/braintree/validation_error.rb
braintree-2.87.0 lib/braintree/validation_error.rb
braintree-2.86.0 lib/braintree/validation_error.rb
braintree-2.85.0 lib/braintree/validation_error.rb
braintree-2.84.0 lib/braintree/validation_error.rb
braintree-2.83.0 lib/braintree/validation_error.rb
braintree-2.82.0 lib/braintree/validation_error.rb
braintree-2.81.0 lib/braintree/validation_error.rb