Class: PlatformAPI::Region

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

Overview

A region represents a geographic location in which your application may run.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Region

Returns a new instance of Region.



2657
2658
2659
# File 'lib/platform-api/client.rb', line 2657

def initialize(client)
  @client = client
end

Instance Method Details

#info(region_id_or_region_name) ⇒ Object

Info for existing region.

Parameters:

  • region_id_or_region_name:

    unique identifier of region or unique name of region



2664
2665
2666
# File 'lib/platform-api/client.rb', line 2664

def info(region_id_or_region_name)
  @client.region.info(region_id_or_region_name)
end

#listObject

List existing regions.



2669
2670
2671
# File 'lib/platform-api/client.rb', line 2669

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