Class: GitHubV3API::Org

Inherits:
Entity
  • Object
show all
Defined in:
lib/github_v3_api/org.rb

Overview

Represents a single GitHub Org and provides access to its data attributes.

Instance Attribute Summary collapse

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

#avatar_urlObject (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_emailObject (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

#blogObject (readonly)

Returns the value of attribute blog.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def blog
  @blog
end

#collaboratorsObject (readonly)

Returns the value of attribute collaborators.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def collaborators
  @collaborators
end

#companyObject (readonly)

Returns the value of attribute company.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def company
  @company
end

#created_atObject (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_usageObject (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

#emailObject (readonly)

Returns the value of attribute email.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def email
  @email
end

#followersObject (readonly)

Returns the value of attribute followers.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def followers
  @followers
end

#followingObject (readonly)

Returns the value of attribute following.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def following
  @following
end

#html_urlObject (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

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def id
  @id
end

#locationObject (readonly)

Returns the value of attribute location.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def location
  @location
end

#loginObject (readonly)

Returns the value of attribute login.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def 
  @login
end

#nameObject (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_reposObject (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

#planObject (readonly)

Returns the value of attribute plan.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def plan
  @plan
end

#private_gistsObject (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_reposObject (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_gistsObject (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_reposObject (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

#spaceObject (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_reposObject (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

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/github_v3_api/org.rb', line 5

def type
  @type
end

#urlObject (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

#membersObject

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()
end

#public_membersObject

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()
end

#reposObject

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()
end