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



1047
1048
1049
# File 'lib/platform-api/client.rb', line 1047

def initialize(client)
  @client = client
end

Instance Method Details

#info(region_id_or_region_name) ⇒ Object

Info for existing region.



1054
1055
1056
# File 'lib/platform-api/client.rb', line 1054

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

#listObject

List existing regions.



1059
1060
1061
# File 'lib/platform-api/client.rb', line 1059

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