Class: PlatformAPI::Generation
- Inherits:
-
Object
- Object
- PlatformAPI::Generation
- 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
-
#info(stack_name_or_stack_id) ⇒ Object
Info for generation.
-
#initialize(client) ⇒ Generation
constructor
A new instance of Generation.
-
#list ⇒ Object
List available generations.
-
#list_by_team(team_name_or_team_id) ⇒ Object
List available generations for a team.
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.
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 |
#list ⇒ Object
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.
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 |