Class: PlatformAPI::Generation

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

A generation represents a version of the Heroku platform that includes the app execution environment, routing, telemetry, and build systems.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Generation

Returns a new instance of Generation.



1993
1994
1995
# File 'lib/platform-api/client.rb', line 1993

def initialize(client)
  @client = client
end

Instance Method Details

#info(stack_name_or_stack_id) ⇒ Object

Info for generation.

Parameters:

  • stack_name_or_stack_id:

    unique name of stack or unique identifier of stack



2000
2001
2002
# File 'lib/platform-api/client.rb', line 2000

def info(stack_name_or_stack_id)
  @client.generation.info(stack_name_or_stack_id)
end

#listObject

List available generations.



2005
2006
2007
# File 'lib/platform-api/client.rb', line 2005

def list()
  @client.generation.list()
end

#list_by_team(team_name_or_team_id) ⇒ Object

List available generations for a team.

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team



2012
2013
2014
# File 'lib/platform-api/client.rb', line 2012

def list_by_team(team_name_or_team_id)
  @client.generation.list_by_team(team_name_or_team_id)
end