Class GHGitignoreTemplate

java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHGitignoreTemplate
All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class GHGitignoreTemplate extends GHBase
This class represents a GitHub Gitignore Template. It provides methods for fetching data about the gitignore template such as its name and source.
  • Constructor Details

    • GHGitignoreTemplate

      public GHGitignoreTemplate(org.json.JSONObject jsonObject)
      Constructs a new GHGitignoreTemplate instance with the provided JSON object.
      Parameters:
      jsonObject - the JSON object containing the gitignore template data
  • Method Details

    • getName

      public String getName()
      Returns the name of the gitignore template.
      Returns:
      the name of the gitignore template
    • getSource

      public String getSource()
      Returns the source of the gitignore template.
      Returns:
      the source of the gitignore template