Class: AwsPricing::Ec2DiPriceList
- Includes:
- Ec2Common
- Defined in:
- lib/amazon-pricing/ec2-di-price-list.rb
Constant Summary
Constants inherited from PriceList
Instance Attribute Summary
Attributes inherited from PriceList
Instance Method Summary collapse
-
#initialize ⇒ Ec2DiPriceList
constructor
A new instance of Ec2DiPriceList.
Methods included from Ec2Common
#ensure_existence_of_instance_type, #fetch_ec2_instance_pricing, #fetch_ec2_instance_pricing_ri_v2, #find_or_create_instance_type, #set_od_price_if_missing
Methods inherited from PriceList
fetch_url, #get_instance_type, #get_instance_types, #get_region
Constructor Details
#initialize ⇒ Ec2DiPriceList
Returns a new instance of Ec2DiPriceList.
5 6 7 8 9 10 11 12 |
# File 'lib/amazon-pricing/ec2-di-price-list.rb', line 5 def initialize super InstanceType.populate_lookups get_ec2_di_od_pricing # assumption is above/di_od populates all InstanceType's, but it missing entries e.g. x1.32xlarge; # the fix is we now allow fetch_ec2_instance_pricing_ri_v2 to add instance_types get_ec2_reserved_di_pricing end |