Class: DockerCloud::Region
- Inherits:
-
Type
- Object
- Type
- DockerCloud::Region
show all
- Defined in:
- lib/docker_cloud/region.rb
Instance Attribute Summary
Attributes inherited from Type
#uuid
Instance Method Summary
collapse
Methods inherited from Type
#initialize
Instance Method Details
#availability_zones ⇒ Object
24
25
26
|
# File 'lib/docker_cloud/region.rb', line 24
def availability_zones
@availability_zones ||= client.availability_zones.all(region: name)
end
|
#available ⇒ Object
def availability_zones; info; end
16
17
18
|
# File 'lib/docker_cloud/region.rb', line 16
def available
info[:available]
end
|
#label ⇒ Object
11
12
13
|
# File 'lib/docker_cloud/region.rb', line 11
def label
info[:label]
end
|
#name ⇒ Object
7
8
9
|
# File 'lib/docker_cloud/region.rb', line 7
def name
info[:name]
end
|
#node_types ⇒ Object
20
21
22
|
# File 'lib/docker_cloud/region.rb', line 20
def node_types
@node_types ||= client.node_types.all(region: name)
end
|
#resource_uri ⇒ Object
3
4
5
|
# File 'lib/docker_cloud/region.rb', line 3
def resource_uri
info[:resource_uri]
end
|