Class: GithubSearch::Repository

Inherits:
Searcher
  • Object
show all
Defined in:
lib/github-search/repository.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_atObject (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_branchObject (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

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def description
  @description
end

#downloads_urlObject (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_urlObject (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

#forkObject (readonly)

Returns the value of attribute fork.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def fork
  @fork
end

#forksObject (readonly)

Returns the value of attribute forks.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def forks
  @forks
end

#forks_countObject (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_urlObject (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_nameObject (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_urlObject (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_urlObject (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_urlObject (readonly)

Returns the value of attribute git_tags_url.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def git_tags_url
  @git_tags_url
end

#git_urlObject (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_downloadsObject (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_issuesObject (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_pagesObject (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_wikiObject (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

#homepageObject (readonly)

Returns the value of attribute homepage.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def homepage
  @homepage
end

#hooks_urlObject (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_urlObject (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

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def id
  @id
end

#issue_comment_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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

#languageObject (readonly)

Returns the value of attribute language.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def language
  @language
end

#languages_urlObject (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_urlObject (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_urlObject (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_urlObject (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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def name
  @name
end

#notifications_urlObject (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_issuesObject (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_countObject (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

#ownerObject (readonly)

Returns the value of attribute owner.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def owner
  @owner
end

#privateObject (readonly)

Returns the value of attribute private.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def private
  @private
end

#pulls_urlObject (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_atObject (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_urlObject (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

#scoreObject (readonly)

Returns the value of attribute score.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def score
  @score
end

#sizeObject (readonly)

Returns the value of attribute size.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def size
  @size
end

#ssh_urlObject (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_countObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (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_urlObject (readonly)

Returns the value of attribute tags_url.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def tags_url
  @tags_url
end

#teams_urlObject (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_urlObject (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_atObject (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

#urlObject (readonly)

Returns the value of attribute url.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def url
  @url
end

#watchersObject (readonly)

Returns the value of attribute watchers.



6
7
8
# File 'lib/github-search/repository.rb', line 6

def watchers
  @watchers
end

#watchers_countObject (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_optionsObject



146
147
148
# File 'lib/github-search/repository.rb', line 146

def self.sort_options
  [:stars, :forks, :updated]
end