Class: Githu3::Team
Instance Method Summary collapse
Methods inherited from Resource
#_attributes, #_path, #get, #id, #initialize, #method_missing
Methods included from Relations
#embeds_many, #embeds_one, #has_many
Constructor Details
This class inherits a constructor from Githu3::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Githu3::Resource
Instance Method Details
#member?(user_login) ⇒ Boolean
12 13 14 15 16 17 18 |
# File 'lib/githu3/team.rb', line 12 def member?(user_login) begin _client.conn.get("/teams/#{id}/members/#{user_login}").status == 204 rescue Githu3::NotFound false end end |
#to_s ⇒ Object
8 9 10 |
# File 'lib/githu3/team.rb', line 8 def to_s name end |