Class: PlatformAPI::Region
- Inherits:
- 
      Object
      
        - Object
- PlatformAPI::Region
 
- Defined in:
- lib/platform-api/client.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.
| 2621 2622 2623 | # File 'lib/platform-api/client.rb', line 2621 def initialize(client) @client = client end | 
Instance Method Details
#info(region_id_or_region_name) ⇒ Object
Info for existing region.
| 2628 2629 2630 | # File 'lib/platform-api/client.rb', line 2628 def info(region_id_or_region_name) @client.region.info(region_id_or_region_name) end | 
#list ⇒ Object
List existing regions.
| 2633 2634 2635 | # File 'lib/platform-api/client.rb', line 2633 def list() @client.region.list() end |