Class: SnapDeploy::Provider::Heroku::API::Region
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::Region
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
A region represents a geographic location in which your application may run.
Instance Method Summary collapse
-
#info(region_id_or_region_name) ⇒ Object
Info for existing region.
-
#initialize(client) ⇒ Region
constructor
A new instance of Region.
-
#list ⇒ Object
List existing regions.
Constructor Details
#initialize(client) ⇒ Region
Returns a new instance of Region.
1370 1371 1372 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1370 def initialize(client) @client = client end |
Instance Method Details
#info(region_id_or_region_name) ⇒ Object
Info for existing region.
1377 1378 1379 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1377 def info(region_id_or_region_name) @client.region.info(region_id_or_region_name) end |
#list ⇒ Object
List existing regions.
1382 1383 1384 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1382 def list() @client.region.list() end |