class DevTraining::Milestone
Class representing a GitHub milestone, lazily instantiated
Constants
- NAME
-
Constant name of the โgraduationโ milestone
Public Class Methods
Source
# File lib/dev_training/milestone.rb, line 12 def initialize(client, repo) @client = client @repo = repo end
Takes an Octokit::Client and a DevTraining::Repository
Public Instance Methods
Source
# File lib/dev_training/milestone.rb, line 20 def resource @resource ||= find || create end
The Sawyer::Resource representing the GitHub milestone. It will be found by title or created in the repository if not found.