Module: Fog::Proxmox::Json

Defined in:
lib/fog/proxmox/json.rb

Overview

module Json mixins

Class Method Summary collapse

Class Method Details

.get_data(response) ⇒ Object


26
27
28
29
# File 'lib/fog/proxmox/json.rb', line 26

def self.get_data(response)
  body = JSON.decode(response.body)
  body['data']
end