def get_properties(refresh_cache = false)
      if refresh_cache || @properties.nil?
        @properties = client.get(File.join("/api/storage", relative_path), properties: nil)["properties"]
      end

      @properties
    end
def get_properties(refresh_cache = false)
      if refresh_cache || @properties.nil?
        @properties = client.get(File.join("/api/storage", relative_path), properties: nil)["properties"]
      end

      @properties
    end
Helper method for reading artifact properties

 @example List all properties for an artifact
   artifact.get_properties #=> { 'artifactory.licenses'=>['Apache-2.0'] }

 @param [TrueClass, FalseClass] refresh_cache (default: +false+)
   wether or not to use the locally cached value if it exists and is not nil

 @return [Hash<String, Object>]
   the list of properties