class CrewCheck::Team
Public Class Methods
new(github_team = nil)
click to toggle source
# File lib/crew_check/team.rb, line 3 def initialize(github_team = nil) @github_team = github_team end
Public Instance Methods
shorthand_name()
click to toggle source
# File lib/crew_check/team.rb, line 7 def shorthand_name "#{organization_name}/#{name}" end
Protected Instance Methods
name()
click to toggle source
# File lib/crew_check/team.rb, line 12 def name if @github_team[:name] @github_team[:name].downcase end end
organization_name()
click to toggle source
# File lib/crew_check/team.rb, line 18 def organization_name if @github_team[:organization] && @github_team[:organization][:login] @github_team[:organization][:login].downcase end end