struct

Fetcher::Entry

Inherits Struct < Value < Object

Constructors

create(title : String, url : String, source_type : SourceType, content : String = "", content_html : String | Nil = nil, author : String | Nil = nil, author_url : String | Nil = nil, published_at : Time | Nil = nil, categories : Array(String) = [] of String, attachments : Array(Attachment) = [] of Attachment, version : String | Nil = nil, comment_url : String | Nil = nil, commentary_url : String | Nil = nil, is_discussion_url : Bool = false) : Entry
Source
new(title : String, url : String, source_type : SourceType, content : String = "", content_html : String | Nil = nil, author : String | Nil = nil, author_url : String | Nil = nil, published_at : Time | Nil = nil, categories : Array(String) = [] of String, attachments : Array(Attachment) = [] of Attachment, version : String | Nil = nil, comment_url : String | Nil = nil, commentary_url : String | Nil = nil, is_discussion_url : Bool = false)
Source

Class methods

sanitize_title(title : String | Nil) : String
Source

Instance methods

attachments
author
author_url
categories
clone
Source
comment_url
commentary_url
content
content_html
copy_with(title _title = @title, url _url = @url, source_type _source_type = @source_type, content _content = @content, content_html _content_html = @content_html, author _author = @author, author_url _author_url = @author_url, published_at _published_at = @published_at, categories _categories = @categories, attachments _attachments = @attachments, version _version = @version, comment_url _comment_url = @comment_url, commentary_url _commentary_url = @commentary_url, is_discussion_url _is_discussion_url = @is_discussion_url)
Source
is_discussion_url
published_at
source_type
title
url
version