def get_attributes(klass)
      return @attribute_store[klass] if @attribute_store.key?(klass)

      attributes = []
      klass.ancestors.map do |k|
        hash = k.instance_variable_get(:@class_kit_attributes)
        if hash != nil
          hash.values.each do |a|
            attributes.push(a)
          end
        end
      end
      attributes.compact!

      @attribute_store[klass] = attributes
      attributes
    end
def get_attributes(klass)
      return @attribute_store[klass] if @attribute_store.key?(klass)

      attributes = []
      klass.ancestors.map do |k|
        hash = k.instance_variable_get(:@class_kit_attributes)
        if hash != nil
          hash.values.each do |a|
            attributes.push(a)
          end
        end
      end
      attributes.compact!

      @attribute_store[klass] = attributes
      attributes
    end
Get attributes for a given class

 @param klass [ClassKit] a class that has been extended with ClassKit

 @return [Hash]