String interpolation here too 

    "#{@apiserver_protocol}://#{@apiserver_host}:#{@apiserver_port}#{resource}"