Sha256: 2a89c172eee2a5786418cf4861248a2939d35928471b3dddc9e3ada69e0269f5
Contents?: true
Size: 706 Bytes
Versions: 32
Compression:
Stored size: 706 Bytes
Contents
module Fog module Parsers module Compute module Slicehost class CreateSlice < Fog::Parsers::Base def reset @response = {} end def end_element(name) case name when 'address' @response['addresses'] ||= [] @response['addresses'] << value when 'backup-id', 'flavor-id', 'id', 'image-id', 'progress' @response[name] = value.to_i when 'bw-in', 'bw-out' @response[name] = value.to_f when 'name', 'root-password', 'status' @response[name] = value end end end end end end end
Version data entries
32 entries across 32 versions & 8 rubygems