Update version.rb

replace version.rb attr_accessor with version_params method