Fix cattr_accessor => attr_accessor typo

Hi, I have spotted a typo in latest version in attr_accessor. Strangely I'm getting also undefined method for api_version.