Class: LockDiff::Github::Directory
- Inherits:
-
Object
- Object
- LockDiff::Github::Directory
- Defined in:
- lib/lock_diff/github/directory.rb
Instance Method Summary collapse
- #change_log_urls ⇒ Object
-
#initialize(repository, ref, path: nil) ⇒ Directory
constructor
A new instance of Directory.
Constructor Details
#initialize(repository, ref, path: nil) ⇒ Directory
Returns a new instance of Directory.
4 5 6 7 8 |
# File 'lib/lock_diff/github/directory.rb', line 4 def initialize(repository, ref, path: nil) @repository = repository @ref = ref @path = path end |
Instance Method Details
#change_log_urls ⇒ Object
10 11 12 13 14 |
# File 'lib/lock_diff/github/directory.rb', line 10 def change_log_urls contents.select(&:change_log?).map(&:html_url) rescue Octokit::NotFound [] end |