class

Crpaste::Paste

Inherits Reference < Object

Constructors

new(id : Int32, content : Slice(UInt8), expires_at : Time, client_ip : Nil | String, token : Nil | String, owner_token : Nil | String, created_at : Time | Nil)
Source
new(content : Slice(UInt8), expires_at : Time, client_ip : Nil | String)
Source

Class methods

find(id)
Source
find_with_token(id, token)
Source

Instance methods

client_ip
Source
content
Source
created_at
Source
destroy
Source
destroy_with_token(token)
Source
expired?
Source
expires_at
Source
external_id
Source
make_private
Source
owner_token
Source
persisted?
Source
private?
Source
public?
Source
save
Source
text
Source
token
Source