Class: Inq::Sources::Github::Pulls

Inherits:
Issues
  • Object
show all
Defined in:
lib/inq/sources/github/pulls.rb

Overview

Fetches various information about GitHub Pull Requests

Instance Attribute Summary

Attributes inherited from Issues

#cache, #config, #end_date, #start_date

Instance Method Summary collapse

Methods inherited from Issues

#average_age, #initialize, #newest, #oldest, #summary, #to_a, #to_html, #url

Methods included from Inq::Sources::GithubHelpers

#average_age_for, #newest_for, #obj_to_array_of_hashes, #oldest_for, #sort_iops_by_created_at

Methods included from DateTimeHelpers

#date_ge, #date_le

Constructor Details

This class inherits a constructor from Inq::Sources::Github::Issues

Instance Method Details

#pretty_typeObject



23
24
25
# File 'lib/inq/sources/github/pulls.rb', line 23

def pretty_type
  "pull request"
end

#singular_typeObject



15
16
17
# File 'lib/inq/sources/github/pulls.rb', line 15

def singular_type
  "pull"
end

#typeObject



19
20
21
# File 'lib/inq/sources/github/pulls.rb', line 19

def type
  "pullRequests"
end

#url_suffixObject



11
12
13
# File 'lib/inq/sources/github/pulls.rb', line 11

def url_suffix
  "pulls"
end