1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/models/rds/instance_options.rb
Paulo Henrique Lopes Ribeiro 722bbdfa45 Remove unecessary requires
2015-04-06 11:23:35 -03:00

27 lines
749 B
Ruby

require 'fog/aws/models/rds/instance_option'
module Fog
module AWS
class RDS
class InstanceOptions < Fog::PagedCollection
attribute :filters
attribute :engine
model Fog::AWS::RDS::InstanceOption
def initialize(attributes)
self.filters ||= {}
super
end
# This method deliberately returns only a single page of results
def all(filters_arg = filters)
filters.merge!(filters_arg)
result = service.describe_orderable_db_instance_options(engine, filters).body['DescribeOrderableDBInstanceOptionsResult']
filters[:marker] = result['Marker']
load(result['OrderableDBInstanceOptions'])
end
end
end
end
end