struct Pinboard::Post

Defined in:

pinboard/post.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(url : String, title : String, description : String = "", time : Time = Time.utc, shared : Bool = true, toread : Bool = false, tags : Array(String) = [] of String) #

[View source]

Instance Method Detail

def description : String #

[View source]
def description=(description : String) #

[View source]
def hash : String #
Description copied from class Object

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.


[View source]
def hash=(hash : String) #

[View source]
def meta : String #

[View source]
def meta=(meta : String) #

[View source]
def replace=(replace : Bool) #

[View source]
def replace? : Bool #

[View source]
def shared=(shared : Bool) #

[View source]
def shared? : Bool #

[View source]
def tags : Array(String) #

[View source]
def tags=(tags : Array(String)) #

[View source]
def time : Time #

[View source]
def time=(time : Time) #

[View source]
def title : String #

[View source]
def title=(title : String) #

[View source]
def to_h #

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


[View source]
def toread=(toread : Bool) #

[View source]
def toread? : Bool #

[View source]
def url : String #

[View source]
def url=(url : String) #

[View source]