class XIVAPI::Dataclasses::SearchResult

Overview

Dataclass for results from the /search endpoint

Defined in:

dataclasses/other/search_result.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def datatype : String #

The name of the type of data that this item is.


[View source]
def datatype=(_datatype : String) #

def icon : String #

The URL of the icon for the item.


[View source]
def icon=(_icon : String) #

def id : UInt64 #

The ID of the item returned from the search results.


[View source]
def id=(_id : UInt64) #

def name : String #

The name of the item.


[View source]
def name=(_name : String) #

def score : String #

The score of the item relative to the user's search query.


[View source]
def score=(_score : String) #

def to_json(json : JSON::Builder) #

def url : String #

The URL to the XIVAPI page for the item.


[View source]
def url=(_url : String) #

def url_type : String #

The type of the URL, without the ID.


[View source]
def url_type=(_url_type : String) #