Method: Spaceship::Client#team_id
- Defined in:
- spaceship/lib/spaceship/client.rb
#team_id ⇒ String
Returns The currently selected Team ID.
133 134 135 136 137 138 139 140 |
# File 'spaceship/lib/spaceship/client.rb', line 133 def team_id return @current_team_id if @current_team_id if teams.count > 1 puts("The current user is in #{teams.count} teams. Pass a team ID or call `select_team` to choose a team. Using the first one for now.") end @current_team_id ||= user_details_data['provider']['providerId'] end |