Sha256: 722c05c8517cdb5ee2584a037cd7a70e92853b0f96bb7cb190ecf5b282a83ea2

Contents?: true

Size: 290 Bytes

Versions: 54

Compression:

Stored size: 290 Bytes

Contents

module Braintree
  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

54 entries across 54 versions & 1 rubygems

Version Path
braintree-2.43.0 lib/braintree/validation_error.rb
braintree-2.42.0 lib/braintree/validation_error.rb
braintree-2.41.0 lib/braintree/validation_error.rb
braintree-2.4.0 lib/braintree/validation_error.rb
braintree-2.3.1 lib/braintree/validation_error.rb
braintree-2.2.0 lib/braintree/validation_error.rb
braintree-2.1.0 lib/braintree/validation_error.rb
braintree-2.0.0 lib/braintree/validation_error.rb
braintree-1.2.1 lib/braintree/validation_error.rb
braintree-1.2.0 lib/braintree/validation_error.rb
braintree-1.1.3 lib/braintree/validation_error.rb
braintree-1.1.2 lib/braintree/validation_error.rb
braintree-1.1.1 lib/braintree/validation_error.rb
braintree-1.1.0 lib/braintree/validation_error.rb