Class: GitHubV3API::Org
Overview
Represents a single GitHub Org and provides access to its data attributes.
Instance Attribute Summary collapse
-
#avatar_url ⇒ Object
readonly
Returns the value of attribute avatar_url.
-
#billing_email ⇒ Object
readonly
Returns the value of attribute billing_email.
-
#blog ⇒ Object
readonly
Returns the value of attribute blog.
-
#collaborators ⇒ Object
readonly
Returns the value of attribute collaborators.
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#disk_usage ⇒ Object
readonly
Returns the value of attribute disk_usage.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#followers ⇒ Object
readonly
Returns the value of attribute followers.
-
#following ⇒ Object
readonly
Returns the value of attribute following.
-
#html_url ⇒ Object
readonly
Returns the value of attribute html_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#login ⇒ Object
readonly
Returns the value of attribute login.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#owned_private_repos ⇒ Object
readonly
Returns the value of attribute owned_private_repos.
-
#plan ⇒ Object
readonly
Returns the value of attribute plan.
-
#private_gists ⇒ Object
readonly
Returns the value of attribute private_gists.
-
#private_repos ⇒ Object
readonly
Returns the value of attribute private_repos.
-
#public_gists ⇒ Object
readonly
Returns the value of attribute public_gists.
-
#public_repos ⇒ Object
readonly
Returns the value of attribute public_repos.
-
#space ⇒ Object
readonly
Returns the value of attribute space.
-
#total_private_repos ⇒ Object
readonly
Returns the value of attribute total_private_repos.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#members ⇒ Object
Returns an array of GitHubV3API::User instances representing the users who are members of the organization.
-
#public_members ⇒ Object
Returns an array of GitHubV3API::User instances representing the users who are public members of the organization.
-
#repos ⇒ Object
Returns an array of GitHubV3API::Repo instances representing the repos that belong to this org.
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
#avatar_url ⇒ Object (readonly)
Returns the value of attribute avatar_url.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def avatar_url @avatar_url end |
#billing_email ⇒ Object (readonly)
Returns the value of attribute billing_email.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def billing_email @billing_email end |
#blog ⇒ Object (readonly)
Returns the value of attribute blog.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def blog @blog end |
#collaborators ⇒ Object (readonly)
Returns the value of attribute collaborators.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def collaborators @collaborators end |
#company ⇒ Object (readonly)
Returns the value of attribute company.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def company @company end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def created_at @created_at end |
#disk_usage ⇒ Object (readonly)
Returns the value of attribute disk_usage.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def disk_usage @disk_usage end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def email @email end |
#followers ⇒ Object (readonly)
Returns the value of attribute followers.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def followers @followers end |
#following ⇒ Object (readonly)
Returns the value of attribute following.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def following @following end |
#html_url ⇒ Object (readonly)
Returns the value of attribute html_url.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def html_url @html_url end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def id @id end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def location @location end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def login @login end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def name @name end |
#owned_private_repos ⇒ Object (readonly)
Returns the value of attribute owned_private_repos.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def owned_private_repos @owned_private_repos end |
#plan ⇒ Object (readonly)
Returns the value of attribute plan.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def plan @plan end |
#private_gists ⇒ Object (readonly)
Returns the value of attribute private_gists.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def private_gists @private_gists end |
#private_repos ⇒ Object (readonly)
Returns the value of attribute private_repos.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def private_repos @private_repos end |
#public_gists ⇒ Object (readonly)
Returns the value of attribute public_gists.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def public_gists @public_gists end |
#public_repos ⇒ Object (readonly)
Returns the value of attribute public_repos.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def public_repos @public_repos end |
#space ⇒ Object (readonly)
Returns the value of attribute space.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def space @space end |
#total_private_repos ⇒ Object (readonly)
Returns the value of attribute total_private_repos.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def total_private_repos @total_private_repos end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/github_v3_api/org.rb', line 5 def url @url end |
Instance Method Details
#members ⇒ Object
Returns an array of GitHubV3API::User instances representing the users who are members of the organization
19 20 21 |
# File 'lib/github_v3_api/org.rb', line 19 def members api.list_members(login) end |
#public_members ⇒ Object
Returns an array of GitHubV3API::User instances representing the users who are public members of the organization
25 26 27 |
# File 'lib/github_v3_api/org.rb', line 25 def public_members api.list_public_members(login) end |
#repos ⇒ Object
Returns an array of GitHubV3API::Repo instances representing the repos that belong to this org
13 14 15 |
# File 'lib/github_v3_api/org.rb', line 13 def repos api.list_repos(login) end |