Sha256: 0c9f28d0817b8ac25c8205953459b32556de913eb60b2995a21c92a9694c494b

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

module Githu3

  class Team < Githu3::Resource
    
    has_many :members, :class_name => :user
    has_many :repos
    
    def member?(user_login)
      _client.conn.get("/teams/#{id}/members/#{user_login}").status == 204
    end
        
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
githu3-0.0.2 lib/githu3/team.rb