Class: PlatformAPI::Stack
- Inherits:
-
Object
- Object
- PlatformAPI::Stack
- Defined in:
- lib/platform-api/client.rb
Overview
Stacks are the different application execution environments available in the Heroku platform.
Instance Method Summary collapse
-
#info(stack_name_or_stack_id) ⇒ Object
Stack info.
-
#initialize(client) ⇒ Stack
constructor
A new instance of Stack.
-
#list ⇒ Object
List available stacks.
Constructor Details
#initialize(client) ⇒ Stack
Returns a new instance of Stack.
2993 2994 2995 |
# File 'lib/platform-api/client.rb', line 2993 def initialize(client) @client = client end |
Instance Method Details
#info(stack_name_or_stack_id) ⇒ Object
Stack info.
3000 3001 3002 |
# File 'lib/platform-api/client.rb', line 3000 def info(stack_name_or_stack_id) @client.stack.info(stack_name_or_stack_id) end |
#list ⇒ Object
List available stacks.
3005 3006 3007 |
# File 'lib/platform-api/client.rb', line 3005 def list() @client.stack.list() end |