Class: Fog::AWS::RDS::EventSubscriptions
- Inherits:
-
Collection
- Object
- Collection
- Fog::AWS::RDS::EventSubscriptions
- Defined in:
- lib/fog/aws/models/rds/event_subscriptions.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
9 10 11 12 |
# File 'lib/fog/aws/models/rds/event_subscriptions.rb', line 9 def all data = service.describe_event_subscriptions.body['DescribeEventSubscriptionsResult']['EventSubscriptionsList'] load(data) end |
#get(identity) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/fog/aws/models/rds/event_subscriptions.rb', line 14 def get(identity) data = service.describe_event_subscriptions('SubscriptionName' => identity).body['DescribeEventSubscriptionsResult']['EventSubscriptionsList'] new(data.first) rescue Fog::AWS::RDS::NotFound nil end |