Sha256: 7407e859ed029083371fec4e551720cb7b91bbcff8ef4a5b91957f98e22babca
Contents?: true
Size: 430 Bytes
Versions: 4
Compression:
Stored size: 430 Bytes
Contents
module HubLink class Batch def initialize(query) @query = query end def pull_requests results.map(&:to_h) end def reviews results.flat_map(&:reviews).map(&:to_h) end def review_requests results.flat_map(&:review_requests).map(&:to_h) end private attr_reader :query def results @_results ||= Api::PullRequest.search(query) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hub_link-0.4.0 | lib/hub_link/batch.rb |
hub_link-0.3.0 | lib/hub_link/batch.rb |
hub_link-0.2.0 | lib/hub_link/batch.rb |
hub_link-0.1.0 | lib/hub_link/batch.rb |