class PasteRepository

Overview

The repository for pastes.

Defined in:

paste_repository.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pastes_directory : Path) #

Initializes a new repository for pastes.


[View source]

Instance Method Detail

def count #

Counts the pastes


[View source]
def retrieve(id : String) #

Retrieves a paste by the ID.


[View source]
def store(id : String, contents : String) #

Stores a new paste with given ID and contents.


[View source]