letheanSDPClient - the Ruby gem for the Lethean Binary API
Functionality to simplify using LTHN
This SDK is automatically generated by the OpenAPI Generator project:
- API version: 1.2.2
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://lt.hn
To build the Ruby code into a gem:
gem build letheanSDP.gemspec
Then either install the gem locally:
gem install ./letheanSDP-1.0.0.gem
(for development, run gem install --dev ./letheanSDP-1.0.0.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'letheanSDP', '~> 1.0.0'
If the Ruby gem is hosted at a git repository: https://github.com/LetheanMovement/sdp-api-ruby, then add the following in the Gemfile:
gem 'letheanSDP', :git => 'https://github.com/LetheanMovement/sdp-api-ruby.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'letheanSDP'
api_instance = letheanSDPClient::VpnApi.new
data_dir = 'data_dir_example' # String | Returns the binary version
opts = {
version: true # Boolean | Returns the binary version
}
begin
api_instance.start_letheand(data_dir, opts)
rescue letheanSDPClient::ApiError => e
puts "Exception when calling VpnApi->start_letheand: #{e}"
end
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
letheanSDPClient::VpnApi | start_letheand | GET /letheand/start |
All endpoints do not require authorization.