class Kagi::Object::Result
- Kagi::Object::Result
- Reference
- Object
Overview
A single search result returned by a request
https://help.kagi.com/kagi/api/search.html#search-result
Included Modules
- JSON::Serializable
Defined in:
kagi/objects.crConstructors
Instance Method Summary
-
#published : Time | Nil
@[JSON::Field(key: "published", converter: Time::EpochConverter)] (If available) When the result was publshed
-
#rank : Int32
Search result rank, starting from 0
-
#snippet : String | Nil
(If available) HTML snippet from website
-
#thumbnail : Image | Nil
(If available) Thumbnail associated with the result
-
#title : String
Website title
-
#type : Int32
Type of result object, always "0" for
Result
-
#url : String
Full URL of website
Constructor Detail
Instance Method Detail
def published : Time | Nil
#
@[JSON::Field(key: "published", converter: Time::EpochConverter)] (If available) When the result was publshed