Class: HubStore::Storage::PullRequest
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- HubStore::Storage::PullRequest
- Defined in:
- lib/hub_store/storage/pull_request.rb
Class Method Summary collapse
Class Method Details
.for(repo) ⇒ Object
8 9 10 |
# File 'lib/hub_store/storage/pull_request.rb', line 8 def self.for(repo) where(repo: repo.to_s) end |
.latest_update ⇒ Object
12 13 14 |
# File 'lib/hub_store/storage/pull_request.rb', line 12 def self.latest_update recently_updated_first.first&.updated_at end |