class Fog::Parsers::Compute::ProfitBricks::GetDataCenter
Public Instance Methods
end_element(name)
click to toggle source
# File lib/fog/profitbricks/parsers/compute/get_data_center.rb, line 10 def end_element(name) case name when 'requestId', 'dataCenterId', 'dataCenterName', 'provisioningState', 'location' @response['getDataCenterResponse'][name] = value when 'dataCenterVersion' @response['getDataCenterResponse'][name] = value.to_i end end
reset()
click to toggle source
# File lib/fog/profitbricks/parsers/compute/get_data_center.rb, line 6 def reset @response = { 'getDataCenterResponse' => {} } end