def valid?
      return false unless @profile.valid?(self)
      return false if self['resources'].map{ |resource| resource.valid? }.include?(false)
      true
    end
def valid?
      return false unless @profile.valid?(self)
      return false if self['resources'].map{ |resource| resource.valid? }.include?(false)
      true
    end
Parse or create a data package
 Supports reading data from JSON file, directory, and a URL
 descriptor:: Hash or String
 opts:: Options used to customize reading and parsing