Sha256: 60a0957c5f52cebe868ac5eefaf1e1855f58fa1288367eae35ce8e592c133dd5
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
githu3-0.0.3 | lib/githu3/org.rb |