diff options
Diffstat (limited to 'src/guff/post.cr')
-rw-r--r-- | src/guff/post.cr | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/guff/post.cr b/src/guff/post.cr index 703ed55..3a63163 100644 --- a/src/guff/post.cr +++ b/src/guff/post.cr @@ -14,6 +14,10 @@ class Guff::Post }).to_json(io) end + def name : String + @row["name"] as String + end + private def tags : Array(String) @tags ||= if @row.has_key?("tags") && (@row["tags"] as String).size > 0 (@row["tags"] as String).split('|') |