Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rsbe-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsbe-client

  • 0.5.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Rsbe::Client

Client library for interaction with the rsbe API

Current Status

UNDER DEVELOPMENT

Description

This library allows one to interact with the R* Backend (rsbe) API.

Required Environment Variables:
RSBE_URL
RSBE_USER
RSBE_PASSWORD

e.g.,

export RSBE_URL='https://rsbe.example.com'
export RSBE_USER='foo'
export RSBE_PASSWORD='bar'
Usage (irb example from project root)
$ irb -I lib
irb> require 'rsbe/client'
 => true 
irb> include Rsbe::Client
 => Object

irb> Partner.all.each {|p| puts p.id}
51213be7-c8de-4e06-8cc2-06bfc82cdd68
977e659b-886a-4626-8799-8979426ad2b3
...
...

irb> p = Rsbe::Client::Partner.all.first
 => #<Rsbe::Client::Partner:0x007fdc81b4ec08 ...>

irb> puts "#{p.id} : #{p.code} : #{p.name}"
51213be7-c8de-4e06-8cc2-06bfc82cdd68 : bar :
 => nil 

irb> p.name = 'Foo Bar'
 => "Foo Bar"

irb> p.save
 => true 

> p = Rsbe::Client::Partner.find('51213be7-c8de-4e06-8cc2-06bfc82cdd68')
 => #<Rsbe::Client::Partner:0x007fdc81a3cdd8 ...>

irb>   puts "#{p.id} : #{p.code} : #{p.name}"
51213be7-c8de-4e06-8cc2-06bfc82cdd68 : bar : Foo Bar
 => nil 

FAQs

Package last updated on 18 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc