Sha256: e572041696d82519e208977410610e81175590ac95a96012d609fc348abadebf
Contents?: true
Size: 615 Bytes
Versions: 5
Compression:
Stored size: 615 Bytes
Contents
require 'githu3/repo' module Githu3 class Org < Githu3::Resource has_many :repos has_many :teams has_many :members, :class_name => :user has_many :public_members, :class_name => :user def member?(user_login) begin _client.conn.get("/orgs/#{login}/members/#{user_login}").status == 204 rescue Githu3::NotFound false end end def public_member?(user_login) begin _client.conn.get("/orgs/#{login}/public_members/#{user_login}").status == 204 rescue Githu3::NotFound false end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
githu3-0.0.8 | lib/githu3/org.rb |
githu3-0.0.7 | lib/githu3/org.rb |
githu3-0.0.6 | lib/githu3/org.rb |
githu3-0.0.5 | lib/githu3/org.rb |
githu3-0.0.4 | lib/githu3/org.rb |