class Kagi::Object::Result

Overview

A single search result returned by a request

https://help.kagi.com/kagi/api/search.html#search-result

Included Modules

Defined in:

kagi/objects.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def published : Time | Nil #

@[JSON::Field(key: "published", converter: Time::EpochConverter)] (If available) When the result was publshed


[View source]
def rank : Int32 #

Search result rank, starting from 0


[View source]
def snippet : String | Nil #

(If available) HTML snippet from website


[View source]
def thumbnail : Image | Nil #

(If available) Thumbnail associated with the result


[View source]
def title : String #

Website title


[View source]
def type : Int32 #

Type of result object, always "0" for Result


[View source]
def url : String #

Full URL of website


[View source]