Sha256: 6028836e54080125c8fd132d82a9735db05b055e7f432b2438f54589363e64a1
Contents?: true
Size: 850 Bytes
Versions: 101
Compression:
Stored size: 850 Bytes
Contents
module Fog module Parsers module Terremark module Shared class GetNodeServices < Fog::Parsers::Base def reset @node_service = {} @response = { 'NodeServices' => [] } end def end_element(name) case name when 'Description', 'Href', 'Name', 'IpAddress' @node_service[name] = @value when 'Enabled' if @value == 'true' @node_service[name] = true else @node_service[name] = false end when 'Id', 'Port' @node_service[name] = @value.to_i when 'NodeService' @response['NodeServices'] << @node_service @node_service = {} end end end end end end end
Version data entries
101 entries across 101 versions & 4 rubygems