Sha256: afaa6c093a94c058f5c4e6e51d1dd7c2e86c2131a433b8ada2f568aefa56efca
Contents?: true
Size: 1.01 KB
Versions: 32
Compression:
Stored size: 1.01 KB
Contents
module Fog module Parsers module Compute module AWS class DescribeReservedInstancesOfferings < Fog::Parsers::Base def reset @reserved_instances_offering = {} @response = { 'reservedInstancesOfferingsSet' => [] } end def end_element(name) case name when 'availabilityZone', 'currencyCode', 'instanceType', 'instanceTenancy', 'productDescription', 'reservedInstancesOfferingId' @reserved_instances_offering[name] = value when 'duration' @reserved_instances_offering[name] = value.to_i when 'fixedPrice', 'usagePrice' @reserved_instances_offering[name] = value.to_f when 'item' @response['reservedInstancesOfferingsSet'] << @reserved_instances_offering @reserved_instances_offering = {} when 'requestId' @response[name] = value end end end end end end end
Version data entries
32 entries across 32 versions & 8 rubygems