SDKs
Experimental
Ruby
Use the loams gem and make the first call from Ruby.
The Ruby SDK needs Ruby 3.1 or newer and google-protobuf 4.x. It builds one module client per API module, with a method per call in snake case.
Experimental
The loams gem 0.1.0 is on RubyGems. The SDK is experimental: its API can change between
releases, so pin the exact version.
Examples: github.com/ostrium-labs/loams-ruby · Source: sdks/ruby
Install
gem install loams -v 0.1.0or in a Gemfile:
gem "loams", "0.1.0"Quickstart
require "loams"
client = Loams.client(
ENV.fetch("LOAMS_ENDPOINT", "http://127.0.0.1:8080"),
token: ENV["LOAMS_API_KEY"],
)
# What this instance is; needs no credential.
info = client.instance.get_instance
puts info.nameDevelop
bundle install
bundle exec rake test # the conformance suite