Fix typo and self problem

Hi, I have spotted a typo in latest version in attr_accessor and I have removed self from api_version which raised undefined method.