Class: Zona::ZonePool
- Inherits:
-
OZonesPool
- Object
- JSONElement
- JSONPool
- OZonesPool
- Zona::ZonePool
- Defined in:
- zona/ZonePool.rb
Overview
This class represents a set of Zones. It allows to list the defined Zones and iterate on them.
Constant Summary
- ZONE_POOL_KIND =
String describing the kind of this resource
"zone"
Instance Method Summary (collapse)
-
- (String) factory(element_json)
Produces a new Zone element with the provided description.
-
- (Zona:Error) info
Retrieves the information for this pool.
-
- (ZonePool) initialize(client)
constructor
Initializes a Zone Pool instance.
Methods inherited from OZonesPool
Methods inherited from JSONPool
Methods inherited from JSONElement
Constructor Details
- (ZonePool) initialize(client)
Initializes a Zone Pool instance
29 30 31 |
# File 'zona/ZonePool.rb', line 29 def initialize(client) super(:ZONE_POOL, :ZONE, client) end |
Instance Method Details
- (String) factory(element_json)
Produces a new Zone element with the provided description
36 37 38 |
# File 'zona/ZonePool.rb', line 36 def factory(element_json) Zone.new(element_json,@client) end |
- (Zona:Error) info
Retrieves the information for this pool
42 43 44 |
# File 'zona/ZonePool.rb', line 42 def info super(ZONE_POOL_KIND) end |