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