--- layout: default navsection: sdk navmenu: Ruby title: "Installation" ... {% comment %} Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: CC-BY-SA-3.0 {% endcomment %} The Ruby SDK provides a generic set of wrappers so you can make API calls easily. h2. Installation If you are logged in to an Arvados VM, the Ruby SDK should be installed. To use it elsewhere, you can either install the @arvados@ gem via RubyGems or build and install the package using the arvados source tree. h3. Prerequisites # "Install Ruby":../../install/ruby.html The SDK uses @curl@ which depends on the @libcurl@ C library. To build the module you may have to install additional packages. On Debian 10 this is:
$ apt-get install build-essential libcurl4-openssl-devh3. Install with RubyGems
# gem install arvados
$ ruby -r arvados <<'EOF'
arv = Arvados.new api_version: 'v1'
my_full_name = arv.user.current[:full_name]
puts "arvados.v1.users.current.full_name = '#{my_full_name}'"
EOF
arvados.v1.users.current.full_name = 'Your Name'