Add getters/setters for method and path