struct

Post

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(id : String, author : String, title : String, body : String, source : String, created_at : Time = Time.utc, published_at : Time | Nil = nil, popularity : Float64 = 0, comments : Nil | Array(Comment) = nil, tags : Nil | Array(String) = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

author
Source
body
Source
comments
Source
created_at
Source
popularity
Source
published?
Source
published_at
Source
source
Source
tags
Source
title
Source

Nested types