Class: AuthKeys::Org

Inherits:
Object
  • Object
show all
Defined in:
lib/auth_keys/github/org.rb

Class Method Summary collapse

Class Method Details

.detailsObject



7
8
9
# File 'lib/auth_keys/github/org.rb', line 7

def self.details
  Request.get("https://api.github.com/orgs/#{AuthKeys.config.org_name}")
end

.teamsObject



11
12
13
14
15
16
# File 'lib/auth_keys/github/org.rb', line 11

def self.teams
  data = Request.get("https://api.github.com/orgs/#{AuthKeys.config.org_name}/teams")
  data.map do |attr|
    Team.new(attr)
  end
end