updates APIObject#initialize so that is creates instance variables out of all attributes from response