Socket
Book a DemoInstallSign in
Socket

statuscake-rb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statuscake-rb

1.1.0.pre.beta.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

statuscake-rb test

NOTE: This library is in alpha and not production ready. Whilst it can be used we will not offer support until it is generally available.

The Ruby implementation of the StatusCake API client. Documentation for this library can be found here.

Prerequisites

You will need the following things properly installed on your computer.

  • Ruby: any one of the three latest major releases

Installation

RubyGems

Using RubyGems, add the following to Gemfile:

gem 'statuscake-rb'

And then execute:

$ bundle install

Or install it yourself:

$ gem install statuscake-rb

GitHub

Installing the latest version from GitHub:

$ git clone https://github.com/StatusCakeDev/statuscake-rb
$ cd statuscake-rb
$ bundle install
$ bundle exec rake install

Usage

Import the gem from any Ruby file, instantiate an API client and execute a request:

require 'statuscake'

client = StatusCake::ApiClient.new

# Constructing these options is a temporary fix until a client wide
# authentication mechanism has been realised.
opts = { header_params: { 'Authorization' => "Bearer #{api_token}" } }

service = StatusCake::UptimeApi.new(client)
service.list_uptime_tests(opts)

License

This project is licensed under the MIT License.

FAQs

Package last updated on 21 Mar 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.