module

RightRank

Constants

API = ENV["RIGHTRANK_API"]? || "https://rightrank.com/api/v1"
VERSION = "0.1.0"

Class methods

command(app, name, description, render : JSON::Any -> String, &body : ACON::Input::Interface -> String) : ACON::Command

Registers a command that prints the API body with --json, else the rendered body.

Source
fetch

Performs a GET on the API. Specs replace it to avoid the network.

Source

Performs a GET on the API. Specs replace it to avoid the network.

Source
get(path : String, **params) : String
Source
model(name : String) : String

Returns the /models/:slug body of the closest q match, which the API returns first.

Source

Nested types