class Post
- Post
- Reference
- Object
Overview
A representation of a post, with some convenience functions.
Included Modules
- JSON::Serializable
Defined in:
e6/types/post.crConstructors
Class Method Summary
- .from_json(json, root : String)
- .from_json(json : String)
- .start_safe_parser(parser : JSON::PullParser, json : String)
Instance Method Summary
- #approver_id : UInt32 | Nil
- #approver_id=(approver_id : UInt32 | Nil)
- #change_seq : UInt32
- #change_seq=(change_seq : UInt32)
- #comment_count : UInt32
- #comment_count=(comment_count : UInt32)
- #created_at : String
- #created_at=(created_at : String)
- #description : String | Nil
- #description=(description : String | Nil)
- #duration : Float32 | Nil
- #duration=(duration : Float32 | Nil)
- #fav_count : UInt32
- #fav_count=(fav_count : UInt32)
- #file : PostFile
- #file=(file : PostFile)
- #flags : PostFlags
- #flags=(flags : PostFlags)
- #has_notes : Bool
- #has_notes=(has_notes : Bool)
- #id : UInt32
- #id=(id : UInt32)
- #is_favorited : Bool
- #is_favorited=(is_favorited : Bool)
- #locked_tags : Array(String)
- #locked_tags=(locked_tags : Array(String))
- #pools : Array(UInt32)
- #pools=(pools : Array(UInt32))
- #preview : PostPreview
- #preview=(preview : PostPreview)
- #rating : String
- #rating=(rating : String)
- #relationships : PostRelationships
- #relationships=(relationships : PostRelationships)
- #sample : PostSample
- #sample=(sample : PostSample)
- #score : PostScore
- #score=(score : PostScore)
- #sources : Array(String)
- #sources=(sources : Array(String))
- #tags : PostTags
- #tags=(tags : PostTags)
- #updated_at : String | Nil
- #updated_at=(updated_at : String | Nil)
- #uploader_id : UInt32
- #uploader_id=(uploader_id : UInt32)