Sha256: b1c4b9fa8afcfa45c4263a6dd3e10bd021be64d310673d5d971d7cac78f6e49c
Contents?: true
Size: 821 Bytes
Versions: 22
Compression:
Stored size: 821 Bytes
Contents
module Fog module Parsers module Compute module AWS class DescribeSpotPriceHistory < Fog::Parsers::Base def reset @spot_price = {} @response = { 'spotPriceHistorySet' => [] } end def end_element(name) case name when 'availabilityZone', 'instanceType', 'productDescription' @spot_price[name] = value when 'item' @response['spotPriceHistorySet'] << @spot_price @spot_price = {} when 'requestId' @response[name] = value when 'spotPrice' @spot_price[name] = value.to_f when 'timestamp' @spot_price[name] = Time.parse(value) end end end end end end end
Version data entries
22 entries across 22 versions & 5 rubygems