Sha256: ab30187e64bb63a963aeab2213ac709d52ae274c346e39b1f562854c9fb6132b
Contents?: true
Size: 663 Bytes
Versions: 61
Compression:
Stored size: 663 Bytes
Contents
module Fog module Parsers module Terremark module Shared class NodeService < TerremarkParser def reset @response = {} end def end_element(name) case name when 'Description', 'Href', 'IpAddress', 'Name', 'Protocol' @response[name] = value when 'Enabled' if value == 'false' @response[name] = false else @response[name] = true end when 'Id', 'Port' @response[name] = value.to_i end end end end end end end
Version data entries
61 entries across 61 versions & 6 rubygems