lib/githu3/team.rb in githu3-0.0.3 vs lib/githu3/team.rb in githu3-0.0.4
- old
+ new
@@ -3,9 +3,13 @@
class Team < Githu3::Resource
has_many :members, :class_name => :user
has_many :repos
+ def to_s
+ name
+ end
+
def member?(user_login)
begin
_client.conn.get("/teams/#{id}/members/#{user_login}").status == 204
rescue Githu3::NotFound
false