Class: PlatformAPI::TeamApp
- Inherits:
- 
      Object
      
        - Object
- PlatformAPI::TeamApp
 
- Defined in:
- lib/platform-api/client.rb
Overview
A team app encapsulates the team specific functionality of Heroku apps.
Instance Method Summary collapse
- 
  
    
      #create(body = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Create a new app in the specified team, in the default team if unspecified, or in personal account, if default team is not set. 
- 
  
    
      #info(app_name)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Info for a team app. 
- 
  
    
      #initialize(client)  ⇒ TeamApp 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TeamApp. 
- 
  
    
      #list_by_team(team_name_or_team_id)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    List team apps. 
- 
  
    
      #transfer_to_account(app_name, body = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Transfer an existing team app to another Heroku account. 
- 
  
    
      #transfer_to_team(app_name, body = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Transfer an existing team app to another team. 
- 
  
    
      #update_locked(app_name, body = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Lock or unlock a team app. 
Constructor Details
#initialize(client) ⇒ TeamApp
Returns a new instance of TeamApp.
| 3128 3129 3130 | # File 'lib/platform-api/client.rb', line 3128 def initialize(client) @client = client end | 
Instance Method Details
#create(body = {}) ⇒ Object
Create a new app in the specified team, in the default team if unspecified, or in personal account, if default team is not set.
| 3135 3136 3137 | # File 'lib/platform-api/client.rb', line 3135 def create(body = {}) @client.team_app.create(body) end | 
#info(app_name) ⇒ Object
Info for a team app.
| 3142 3143 3144 | # File 'lib/platform-api/client.rb', line 3142 def info(app_name) @client.team_app.info(app_name) end | 
#list_by_team(team_name_or_team_id) ⇒ Object
List team apps.
| 3173 3174 3175 | # File 'lib/platform-api/client.rb', line 3173 def list_by_team(team_name_or_team_id) @client.team_app.list_by_team(team_name_or_team_id) end | 
#transfer_to_account(app_name, body = {}) ⇒ Object
Transfer an existing team app to another Heroku account.
| 3158 3159 3160 | # File 'lib/platform-api/client.rb', line 3158 def transfer_to_account(app_name, body = {}) @client.team_app.transfer_to_account(app_name, body) end | 
#transfer_to_team(app_name, body = {}) ⇒ Object
Transfer an existing team app to another team.
| 3166 3167 3168 | # File 'lib/platform-api/client.rb', line 3166 def transfer_to_team(app_name, body = {}) @client.team_app.transfer_to_team(app_name, body) end | 
#update_locked(app_name, body = {}) ⇒ Object
Lock or unlock a team app.
| 3150 3151 3152 | # File 'lib/platform-api/client.rb', line 3150 def update_locked(app_name, body = {}) @client.team_app.update_locked(app_name, body) end |