Class: GitHubV3API::Repo
Overview
Represents a single GitHub Repo and provides access to its data attributes.
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#fork ⇒ Object
readonly
Returns the value of attribute fork.
-
#forks ⇒ Object
readonly
Returns the value of attribute forks.
-
#has_downloads ⇒ Object
readonly
Returns the value of attribute has_downloads.
-
#has_issues ⇒ Object
readonly
Returns the value of attribute has_issues.
-
#has_wiki ⇒ Object
readonly
Returns the value of attribute has_wiki.
-
#homepage ⇒ Object
readonly
Returns the value of attribute homepage.
-
#html_url ⇒ Object
readonly
Returns the value of attribute html_url.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#master_branch ⇒ Object
readonly
Returns the value of attribute master_branch.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#open_issues ⇒ Object
readonly
Returns the value of attribute open_issues.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#private ⇒ Object
readonly
Returns the value of attribute private.
-
#pushed_at ⇒ Object
readonly
Returns the value of attribute pushed_at.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#watchers ⇒ Object
readonly
Returns the value of attribute watchers.
Instance Method Summary collapse
Methods inherited from Entity
#[], attr_reader, #initialize, #initialize_fetched, new_with_all_data
Constructor Details
This class inherits a constructor from GitHubV3API::Entity
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def created_at @created_at end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def description @description end |
#fork ⇒ Object (readonly)
Returns the value of attribute fork.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def fork @fork end |
#forks ⇒ Object (readonly)
Returns the value of attribute forks.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def forks @forks end |
#has_downloads ⇒ Object (readonly)
Returns the value of attribute has_downloads.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def has_downloads @has_downloads end |
#has_issues ⇒ Object (readonly)
Returns the value of attribute has_issues.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def has_issues @has_issues end |
#has_wiki ⇒ Object (readonly)
Returns the value of attribute has_wiki.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def has_wiki @has_wiki end |
#homepage ⇒ Object (readonly)
Returns the value of attribute homepage.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def homepage @homepage end |
#html_url ⇒ Object (readonly)
Returns the value of attribute html_url.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def html_url @html_url end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def language @language end |
#master_branch ⇒ Object (readonly)
Returns the value of attribute master_branch.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def master_branch @master_branch end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def name @name end |
#open_issues ⇒ Object (readonly)
Returns the value of attribute open_issues.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def open_issues @open_issues end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def organization @organization end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def owner @owner end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def parent @parent end |
#private ⇒ Object (readonly)
Returns the value of attribute private.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def private @private end |
#pushed_at ⇒ Object (readonly)
Returns the value of attribute pushed_at.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def pushed_at @pushed_at end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def size @size end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def source @source end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def url @url end |
#watchers ⇒ Object (readonly)
Returns the value of attribute watchers.
5 6 7 |
# File 'lib/github_v3_api/repo.rb', line 5 def watchers @watchers end |
Instance Method Details
#list_collaborators ⇒ Object
14 15 16 |
# File 'lib/github_v3_api/repo.rb', line 14 def list_collaborators api.list_collaborators(owner_login, name) end |
#list_forks ⇒ Object
22 23 24 |
# File 'lib/github_v3_api/repo.rb', line 22 def list_forks api.list_forks(owner_login, name) end |
#list_watchers ⇒ Object
18 19 20 |
# File 'lib/github_v3_api/repo.rb', line 18 def list_watchers api.list_watchers(owner_login, name) end |
#owner_login ⇒ Object
10 11 12 |
# File 'lib/github_v3_api/repo.rb', line 10 def owner_login owner['login'] end |