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.



4003
4004
4005
# File 'lib/platform-api/client.rb', line 4003

def initialize(client)
  @client = client
end

Instance Method Details

#info(region_id_or_region_name) ⇒ Object



4015
4016
4017
# File 'lib/platform-api/client.rb', line 4015

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

#listObject

List existing regions.



4022
4023
4024
# File 'lib/platform-api/client.rb', line 4022

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