Class: GitReport::History
- Inherits:
-
Object
- Object
- GitReport::History
- Defined in:
- lib/history.rb
Class Method Summary collapse
-
.commits(scope = :user) ⇒ Object
returns the histories commits depending on the scope :user or :all.
Class Method Details
.commits(scope = :user) ⇒ Object
returns the histories commits depending on the scope :user or :all
6 7 8 9 10 11 12 13 |
# File 'lib/history.rb', line 6 def self.commits scope = :user case scope when :user self.user_commits else self.all_commits end end |