This API SDK was automatically generated by APIMATIC Code Generator.
The generated code might need to be configured with your API credentials. To do that, open the file "configuration.rb" and edit it's contents.
Alternatively, you can modify the Configuration parameters at run-time through the following:
Raas::Configuration.your_paramater = YOUR_VALUE
The generated code depends on a few Ruby gems. The references to these gems are added in the gemspec file. The easiest way to resolve the dependencies, build the gem and install it is through Rake:
- Install Rake if not already installed:
gem install rake
- Install Bundler if not already installed:
gem install bundler
- From terminal/cmd navigate to the root directory of the SDK.
- Invoke:
rake install
Alternatively, you can build and install the gem manually:
- From terminal/cmd navigate to the root directory of the SDK.
- Run the build command:
gem build raas.gemspec
- Run the install command:
gem install ./raas-2.3.4.gem
Note: You will need to have internet access for this step.
You can test the generated SDK and the server with automatically generated test cases as follows:
- From terminal/cmd navigate to the root directory of the SDK.
- Invoke:
bundle exec rake
After having installed the gem, you can easily use the SDK following these steps.
- Create a "raas_test.rb" file in the root directory.
- Use any controller as follows:
require 'raas'
api_client = Raas::RaasClient.new
controller = api_client.status_controller
response = controller.get_system_status(<required parameters if any>)
p response