class Post

Overview

A representation of a post, with some convenience functions.

Included Modules

Defined in:

e6/types/post.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.from_json(json, root : String) #

[View source]
def self.from_json(json : String) #

[View source]
def self.start_safe_parser(parser : JSON::PullParser, json : String) #

[View source]

Instance Method Detail

def approver_id : UInt32 | Nil #

[View source]
def approver_id=(approver_id : UInt32 | Nil) #

[View source]
def change_seq : UInt32 #

[View source]
def change_seq=(change_seq : UInt32) #

[View source]
def comment_count : UInt32 #

[View source]
def comment_count=(comment_count : UInt32) #

[View source]
def created_at : String #

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

[View source]
def description : String | Nil #

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

[View source]
def duration : Float32 | Nil #

[View source]
def duration=(duration : Float32 | Nil) #

[View source]
def fav_count : UInt32 #

[View source]
def fav_count=(fav_count : UInt32) #

[View source]
def file : PostFile #

[View source]
def file=(file : PostFile) #

[View source]
def flags : PostFlags #

[View source]
def flags=(flags : PostFlags) #

[View source]
def has_notes : Bool #

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

[View source]
def id : UInt32 #

[View source]
def id=(id : UInt32) #

[View source]
def is_favorited : Bool #

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

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

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

[View source]
def pools : Array(UInt32) #

[View source]
def pools=(pools : Array(UInt32)) #

[View source]
def preview : PostPreview #

[View source]
def preview=(preview : PostPreview) #

[View source]
def rating : String #

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

[View source]
def relationships : PostRelationships #

[View source]
def relationships=(relationships : PostRelationships) #

[View source]
def sample : PostSample #

[View source]
def sample=(sample : PostSample) #

[View source]
def score : PostScore #

[View source]
def score=(score : PostScore) #

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

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

[View source]
def tags : PostTags #

[View source]
def tags=(tags : PostTags) #

[View source]
def updated_at : String | Nil #

[View source]
def updated_at=(updated_at : String | Nil) #

[View source]
def uploader_id : UInt32 #

[View source]
def uploader_id=(uploader_id : UInt32) #

[View source]