class Fog::AWS::RDS::SecurityGroups

Public Class Methods

new(attributes={}) click to toggle source
Calls superclass method
# File lib/fog/aws/models/rds/security_groups.rb, line 11
def initialize(attributes={})
  self.filters ||= {}
  if attributes[:server]
    filters[:identifier] = attributes[:server].id
  end
  super
end

Public Instance Methods

all(filters_arg = filters) click to toggle source
# File lib/fog/aws/models/rds/security_groups.rb, line 19
def all(filters_arg = filters)
  filters = filters_arg
  data = service.describe_db_security_groups(filters).body['DescribeDBSecurityGroupsResult']['DBSecurityGroups']
  load(data) # data is an array of attribute hashes
end
get(identity) click to toggle source

Example: get('my_db_security_group') # => model for my_db_security_group

# File lib/fog/aws/models/rds/security_groups.rb, line 27
def get(identity)
  data = service.describe_db_security_groups(identity).body['DescribeDBSecurityGroupsResult']['DBSecurityGroups'].first
  new(data) # data is an attribute hash
rescue Fog::AWS::RDS::NotFound
  nil
end
new(attributes = {}) click to toggle source
Calls superclass method
# File lib/fog/aws/models/rds/security_groups.rb, line 34
def new(attributes = {})
  super
end