Class: PlatformAPI::DynoSize

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

Overview

Dyno sizes are the values and details of sizes that can be assigned to dynos. This information can also be found at : https://devcenter.heroku.com/articles/dyno-types.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ DynoSize

Returns a new instance of DynoSize.


1201
1202
1203
# File 'lib/platform-api/client.rb', line 1201

def initialize(client)
  @client = client
end

Instance Method Details

#info(dyno_size_id_or_dyno_size_name) ⇒ Object

Info for existing dyno size.

Parameters:

  • dyno_size_id_or_dyno_size_name:

    unique identifier of this dyno size or the name of this dyno-size


1208
1209
1210
# File 'lib/platform-api/client.rb', line 1208

def info(dyno_size_id_or_dyno_size_name)
  @client.dyno_size.info(dyno_size_id_or_dyno_size_name)
end

#listObject

List existing dyno sizes.


1213
1214
1215
# File 'lib/platform-api/client.rb', line 1213

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