Class: Github::Commit
- Inherits:
-
Object
- Object
- Github::Commit
- Includes:
- HappyMapper
- Defined in:
- lib/le_git/commit.rb
Class Method Summary collapse
Class Method Details
.find(username, repository, hash_or_all) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/le_git/commit.rb', line 10 def self.find(username, repository, hash_or_all) case hash_or_all when :all self.find_all username, repository else self.find_by_hash username, repository, hash_or_all end end |