struct

Pinboard::Post

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(url : String, title : String, description : String = "", time : Time = Time.utc, shared : Bool = true, toread : Bool = false, tags : Array(String) = [] of String)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

description
Source
description=(description : String)
Source
hash

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.

Source
hash=(hash : String)
Source
meta
Source
meta=(meta : String)
Source
replace=(replace : Bool)
Source
replace?
Source
shared=(shared : Bool)
Source
shared?
Source
tags
Source
tags=(tags : Array(String))
Source
time
Source
time=(time : Time)
Source
title
Source
title=(title : String)
Source
to_h

Convert to a Hash for querying. @return [Hash]

Source
toread=(toread : Bool)
Source
toread?
Source
url=(url : String)
Source