# File lib/cloudservers/flavor.rb, line 20 def initialize(connection,id) response = connection.csreq("GET",connection.svrmgmthost,"#{connection.svrmgmtpath}/flavors/#{URI.escape(id.to_s)}",connection.svrmgmtport,connection.svrmgmtscheme) CloudServers::Exception.raise_exception(response) unless response.code.match(/^20.$/) data = JSON.parse(response.body)['flavor'] @id = data['id'] @name = data['name'] @ram = data['ram'] @disk = data['disk'] end