Class: Fog::AWS::RDS::Clusters

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/aws/models/rds/clusters.rb

Instance Method Summary collapse

Instance Method Details

#allObject



9
10
11
12
# File 'lib/fog/aws/models/rds/clusters.rb', line 9

def all
  data = service.describe_db_clusters.body['DescribeDBClustersResult']['DBClusters']
  load(data)
end

#get(identity) ⇒ Object



14
15
16
17
18
19
# File 'lib/fog/aws/models/rds/clusters.rb', line 14

def get(identity)
  data = service.describe_db_clusters(identity).body['DescribeDBClustersResult']['DBClusters'].first
  new(data)
rescue Fog::AWS::RDS::NotFound
  nil
end