class LinkShort::LinkShort

Overview

Represents the LinkShort API. Is used for making requests and managing the Linker objects

Defined in:

linkshort.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(base_uri : String = "https://ls.johannespour.de") #

[View source]

Instance Method Detail

def all : Array(Linker) #

Get all Linker objects


[View source]
def create(destination : String) : Linker #

Create a new Linker from a destination


[View source]
def delete(linker : Linker) : Linker #

Delete a certain Linker


[View source]
def edit(linker : Linker, destination) : Linker #

Edit the destination of a Linker


[View source]
def from_id(id : String) : Linker #

Get a Linker by its id


[View source]