Sha256: a13c592721b74add2ba7d7375fb08a994621756595a3471ac5f1333d39bf365d

Contents?: true

Size: 294 Bytes

Versions: 2

Compression:

Stored size: 294 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

2 entries across 2 versions & 1 rubygems

Version Path
braintree-1.0.1 lib/braintree/validation_error.rb
braintree-1.0.0 lib/braintree/validation_error.rb