+Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: CC-BY-SA-3.0
+{% endcomment %}
h2. Initialize SDK
Import the module and set up an API client user agent:
h2. Initialize SDK
Import the module and set up an API client user agent:
-<pre>
+{% codeblock as ruby %}
require 'arvados'
arv = Arvados.new(apiVersion: 'v1')
require 'arvados'
arv = Arvados.new(apiVersion: 'v1')
-</pre>
+{% endcodeblock %}
The SDK retrieves the list of API methods from the server at run time. Therefore, the set of available methods is determined by the server version rather than the SDK version.
The SDK retrieves the list of API methods from the server at run time. Therefore, the set of available methods is determined by the server version rather than the SDK version.