move away from instance variable to a hash of attributes when parsing the JSON to a ruby object