Class: GithubSearch::Repository
- Defined in:
- lib/github-search/repository.rb
Instance Attribute Summary collapse
-
#archive_url ⇒ Object
readonly
Returns the value of attribute archive_url.
-
#assignees_url ⇒ Object
readonly
Returns the value of attribute assignees_url.
-
#blobs_url ⇒ Object
readonly
Returns the value of attribute blobs_url.
-
#branches_url ⇒ Object
readonly
Returns the value of attribute branches_url.
-
#clone_url ⇒ Object
readonly
Returns the value of attribute clone_url.
-
#collaborators_url ⇒ Object
readonly
Returns the value of attribute collaborators_url.
-
#comments_url ⇒ Object
readonly
Returns the value of attribute comments_url.
-
#commits_url ⇒ Object
readonly
Returns the value of attribute commits_url.
-
#compare_url ⇒ Object
readonly
Returns the value of attribute compare_url.
-
#contents_url ⇒ Object
readonly
Returns the value of attribute contents_url.
-
#contributors_url ⇒ Object
readonly
Returns the value of attribute contributors_url.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#default_branch ⇒ Object
readonly
Returns the value of attribute default_branch.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#downloads_url ⇒ Object
readonly
Returns the value of attribute downloads_url.
-
#events_url ⇒ Object
readonly
Returns the value of attribute events_url.
-
#fork ⇒ Object
readonly
Returns the value of attribute fork.
-
#forks ⇒ Object
readonly
Returns the value of attribute forks.
-
#forks_count ⇒ Object
readonly
Returns the value of attribute forks_count.
-
#forks_url ⇒ Object
readonly
Returns the value of attribute forks_url.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#git_commits_url ⇒ Object
readonly
Returns the value of attribute git_commits_url.
-
#git_refs_url ⇒ Object
readonly
Returns the value of attribute git_refs_url.
-
#git_tags_url ⇒ Object
readonly
Returns the value of attribute git_tags_url.
-
#git_url ⇒ Object
readonly
Returns the value of attribute git_url.
-
#has_downloads ⇒ Object
readonly
Returns the value of attribute has_downloads.
-
#has_issues ⇒ Object
readonly
Returns the value of attribute has_issues.
-
#has_pages ⇒ Object
readonly
Returns the value of attribute has_pages.
-
#has_wiki ⇒ Object
readonly
Returns the value of attribute has_wiki.
-
#homepage ⇒ Object
readonly
Returns the value of attribute homepage.
-
#hooks_url ⇒ Object
readonly
Returns the value of attribute hooks_url.
-
#html_url ⇒ Object
readonly
Returns the value of attribute html_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#issue_comment_url ⇒ Object
readonly
Returns the value of attribute issue_comment_url.
-
#issue_events_url ⇒ Object
readonly
Returns the value of attribute issue_events_url.
-
#issues_url ⇒ Object
readonly
Returns the value of attribute issues_url.
-
#keys_url ⇒ Object
readonly
Returns the value of attribute keys_url.
-
#labels_url ⇒ Object
readonly
Returns the value of attribute labels_url.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#languages_url ⇒ Object
readonly
Returns the value of attribute languages_url.
-
#merges_url ⇒ Object
readonly
Returns the value of attribute merges_url.
-
#milestones_url ⇒ Object
readonly
Returns the value of attribute milestones_url.
-
#mirror_url ⇒ Object
readonly
Returns the value of attribute mirror_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#notifications_url ⇒ Object
readonly
Returns the value of attribute notifications_url.
-
#open_issues ⇒ Object
readonly
Returns the value of attribute open_issues.
-
#open_issues_count ⇒ Object
readonly
Returns the value of attribute open_issues_count.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#private ⇒ Object
readonly
Returns the value of attribute private.
-
#pulls_url ⇒ Object
readonly
Returns the value of attribute pulls_url.
-
#pushed_at ⇒ Object
readonly
Returns the value of attribute pushed_at.
-
#releases_url ⇒ Object
readonly
Returns the value of attribute releases_url.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#ssh_url ⇒ Object
readonly
Returns the value of attribute ssh_url.
-
#stargazers_count ⇒ Object
readonly
Returns the value of attribute stargazers_count.
-
#stargazers_url ⇒ Object
readonly
Returns the value of attribute stargazers_url.
-
#statuses_url ⇒ Object
readonly
Returns the value of attribute statuses_url.
-
#subscribers_url ⇒ Object
readonly
Returns the value of attribute subscribers_url.
-
#subscription_url ⇒ Object
readonly
Returns the value of attribute subscription_url.
-
#svn_url ⇒ Object
readonly
Returns the value of attribute svn_url.
-
#tags_url ⇒ Object
readonly
Returns the value of attribute tags_url.
-
#teams_url ⇒ Object
readonly
Returns the value of attribute teams_url.
-
#trees_url ⇒ Object
readonly
Returns the value of attribute trees_url.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#watchers ⇒ Object
readonly
Returns the value of attribute watchers.
-
#watchers_count ⇒ Object
readonly
Returns the value of attribute watchers_count.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Repository
constructor
A new instance of Repository.
Methods inherited from Searcher
#issues, #repos, #search, #users
Constructor Details
#initialize(attributes) ⇒ Repository
Returns a new instance of Repository.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/github-search/repository.rb', line 75 def initialize(attributes) @id = attributes["id"] @name = attributes["name"] @full_name = attributes["full_name"] @owner = attributes["owner"] @private = attributes["private"] @html_url = attributes["html_url"] @description = attributes["description"] @fork = attributes["fork"] @url = attributes["url"] @forks_url = attributes["forks_url"] @keys_url = attributes["keys_url"] @collaborators_url = attributes["collaborators_url"] @teams_url = attributes["teams_url"] @hooks_url = attributes["hooks_url"] @issue_events_url = attributes["issue_events_url"] @events_url = attributes["events_url"] @assignees_url = attributes["assignees_url"] @branches_url = attributes["branches_url"] @tags_url = attributes["tags_url"] @blobs_url = attributes["blobs_url"] @git_tags_url = attributes["git_tags_url"] @git_refs_url = attributes["git_refs_url"] @trees_url = attributes["trees_url"] @statuses_url = attributes["statuses_url"] @languages_url = attributes["languages_url"] @stargazers_url = attributes["stargazers_url"] @contributors_url = attributes["contributors_url"] @subscribers_url = attributes["subscribers_url"] @subscription_url = attributes["subscription_url"] @commits_url = attributes["commits_url"] @git_commits_url = attributes["git_commits_url"] @comments_url = attributes["comments_url"] @issue_comment_url = attributes["issue_comment_url"] @contents_url = attributes["contents_url"] @compare_url = attributes["compare_url"] @merges_url = attributes["merges_url"] @archive_url = attributes["archive_url"] @downloads_url = attributes["downloads_url"] @issues_url = attributes["issues_url"] @pulls_url = attributes["pulls_url"] @milestones_url = attributes["milestones_url"] @notifications_url = attributes["notifications_url"] @labels_url = attributes["labels_url"] @releases_url = attributes["releases_url"] @created_at = attributes["created_at"] @updated_at = attributes["updated_at"] @pushed_at = attributes["pushed_at"] @git_url = attributes["git_url"] @ssh_url = attributes["ssh_url"] @clone_url = attributes["clone_url"] @svn_url = attributes["svn_url"] @homepage = attributes["homepage"] @size = attributes["size"] @stargazers_count = attributes["stargazers_count"] @watchers_count = attributes["watchers_count"] @language = attributes["language"] @has_issues = attributes["has_issues"] @has_downloads = attributes["has_downloads"] @has_wiki = attributes["has_wiki"] @has_pages = attributes["has_pages"] @forks_count = attributes["forks_count"] @mirror_url = attributes["mirror_url"] @open_issues_count = attributes["open_issues_count"] @forks = attributes["forks"] @open_issues = attributes["open_issues"] @watchers = attributes["watchers"] @default_branch = attributes["default_branch"] @score = attributes["score"] end |
Instance Attribute Details
#archive_url ⇒ Object (readonly)
Returns the value of attribute archive_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def archive_url @archive_url end |
#assignees_url ⇒ Object (readonly)
Returns the value of attribute assignees_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def assignees_url @assignees_url end |
#blobs_url ⇒ Object (readonly)
Returns the value of attribute blobs_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def blobs_url @blobs_url end |
#branches_url ⇒ Object (readonly)
Returns the value of attribute branches_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def branches_url @branches_url end |
#clone_url ⇒ Object (readonly)
Returns the value of attribute clone_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def clone_url @clone_url end |
#collaborators_url ⇒ Object (readonly)
Returns the value of attribute collaborators_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def collaborators_url @collaborators_url end |
#comments_url ⇒ Object (readonly)
Returns the value of attribute comments_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def comments_url @comments_url end |
#commits_url ⇒ Object (readonly)
Returns the value of attribute commits_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def commits_url @commits_url end |
#compare_url ⇒ Object (readonly)
Returns the value of attribute compare_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def compare_url @compare_url end |
#contents_url ⇒ Object (readonly)
Returns the value of attribute contents_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def contents_url @contents_url end |
#contributors_url ⇒ Object (readonly)
Returns the value of attribute contributors_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def contributors_url @contributors_url end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def created_at @created_at end |
#default_branch ⇒ Object (readonly)
Returns the value of attribute default_branch.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def default_branch @default_branch end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def description @description end |
#downloads_url ⇒ Object (readonly)
Returns the value of attribute downloads_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def downloads_url @downloads_url end |
#events_url ⇒ Object (readonly)
Returns the value of attribute events_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def events_url @events_url end |
#fork ⇒ Object (readonly)
Returns the value of attribute fork.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def fork @fork end |
#forks ⇒ Object (readonly)
Returns the value of attribute forks.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def forks @forks end |
#forks_count ⇒ Object (readonly)
Returns the value of attribute forks_count.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def forks_count @forks_count end |
#forks_url ⇒ Object (readonly)
Returns the value of attribute forks_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def forks_url @forks_url end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def full_name @full_name end |
#git_commits_url ⇒ Object (readonly)
Returns the value of attribute git_commits_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def git_commits_url @git_commits_url end |
#git_refs_url ⇒ Object (readonly)
Returns the value of attribute git_refs_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def git_refs_url @git_refs_url end |
#git_tags_url ⇒ Object (readonly)
Returns the value of attribute git_tags_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def @git_tags_url end |
#git_url ⇒ Object (readonly)
Returns the value of attribute git_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def git_url @git_url end |
#has_downloads ⇒ Object (readonly)
Returns the value of attribute has_downloads.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def has_downloads @has_downloads end |
#has_issues ⇒ Object (readonly)
Returns the value of attribute has_issues.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def has_issues @has_issues end |
#has_pages ⇒ Object (readonly)
Returns the value of attribute has_pages.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def has_pages @has_pages end |
#has_wiki ⇒ Object (readonly)
Returns the value of attribute has_wiki.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def has_wiki @has_wiki end |
#homepage ⇒ Object (readonly)
Returns the value of attribute homepage.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def homepage @homepage end |
#hooks_url ⇒ Object (readonly)
Returns the value of attribute hooks_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def hooks_url @hooks_url end |
#html_url ⇒ Object (readonly)
Returns the value of attribute html_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def html_url @html_url end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def id @id end |
#issue_comment_url ⇒ Object (readonly)
Returns the value of attribute issue_comment_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def issue_comment_url @issue_comment_url end |
#issue_events_url ⇒ Object (readonly)
Returns the value of attribute issue_events_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def issue_events_url @issue_events_url end |
#issues_url ⇒ Object (readonly)
Returns the value of attribute issues_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def issues_url @issues_url end |
#keys_url ⇒ Object (readonly)
Returns the value of attribute keys_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def keys_url @keys_url end |
#labels_url ⇒ Object (readonly)
Returns the value of attribute labels_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def labels_url @labels_url end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def language @language end |
#languages_url ⇒ Object (readonly)
Returns the value of attribute languages_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def languages_url @languages_url end |
#merges_url ⇒ Object (readonly)
Returns the value of attribute merges_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def merges_url @merges_url end |
#milestones_url ⇒ Object (readonly)
Returns the value of attribute milestones_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def milestones_url @milestones_url end |
#mirror_url ⇒ Object (readonly)
Returns the value of attribute mirror_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def mirror_url @mirror_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def name @name end |
#notifications_url ⇒ Object (readonly)
Returns the value of attribute notifications_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def notifications_url @notifications_url end |
#open_issues ⇒ Object (readonly)
Returns the value of attribute open_issues.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def open_issues @open_issues end |
#open_issues_count ⇒ Object (readonly)
Returns the value of attribute open_issues_count.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def open_issues_count @open_issues_count end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def owner @owner end |
#private ⇒ Object (readonly)
Returns the value of attribute private.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def private @private end |
#pulls_url ⇒ Object (readonly)
Returns the value of attribute pulls_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def pulls_url @pulls_url end |
#pushed_at ⇒ Object (readonly)
Returns the value of attribute pushed_at.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def pushed_at @pushed_at end |
#releases_url ⇒ Object (readonly)
Returns the value of attribute releases_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def releases_url @releases_url end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def score @score end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def size @size end |
#ssh_url ⇒ Object (readonly)
Returns the value of attribute ssh_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def ssh_url @ssh_url end |
#stargazers_count ⇒ Object (readonly)
Returns the value of attribute stargazers_count.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def stargazers_count @stargazers_count end |
#stargazers_url ⇒ Object (readonly)
Returns the value of attribute stargazers_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def stargazers_url @stargazers_url end |
#statuses_url ⇒ Object (readonly)
Returns the value of attribute statuses_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def statuses_url @statuses_url end |
#subscribers_url ⇒ Object (readonly)
Returns the value of attribute subscribers_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def subscribers_url @subscribers_url end |
#subscription_url ⇒ Object (readonly)
Returns the value of attribute subscription_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def subscription_url @subscription_url end |
#svn_url ⇒ Object (readonly)
Returns the value of attribute svn_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def svn_url @svn_url end |
#tags_url ⇒ Object (readonly)
Returns the value of attribute tags_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def @tags_url end |
#teams_url ⇒ Object (readonly)
Returns the value of attribute teams_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def teams_url @teams_url end |
#trees_url ⇒ Object (readonly)
Returns the value of attribute trees_url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def trees_url @trees_url end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def updated_at @updated_at end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def url @url end |
#watchers ⇒ Object (readonly)
Returns the value of attribute watchers.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def watchers @watchers end |
#watchers_count ⇒ Object (readonly)
Returns the value of attribute watchers_count.
6 7 8 |
# File 'lib/github-search/repository.rb', line 6 def watchers_count @watchers_count end |
Class Method Details
.sort_options ⇒ Object
146 147 148 |
# File 'lib/github-search/repository.rb', line 146 def self. [:stars, :forks, :updated] end |