This is a fun little gem that tries to provide a simple object oriented access to the coresense api.
Implementation Caveat: This libarary does not offer support for multiple concurrent connections to different coresense servers, expecting only 1 base endpoint to be defined.
Add this line to your application's Gemfile:
gem 'coresense_rest', github: 'fcpeuro/coresense_rest'
##Examples:
CoresenseRest.configure do |config|
config.host = '<CORESENSE URL>'
config.user_id = '<USER ID>'
config.key = '<KEY>'
end
CoresenseRest::Client.find(1)
CoresenseRest::Client.select
CoresenseRest::Client.where({'id' => 1}).select
CoresenseRest::Client.where('id= 1 ').select