class XIVAPI::Dataclasses::IDName

Overview

A class for a simple combination of ID, and name. Used throughout the library in places that need this simple mapping.

Defined in:

dataclasses/utils/id_name.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def icon #

URL to the icon of the item.


[View source]
def id : UInt64? #

The ID of the item.


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

def name : ::Union(String, Nil) #

def name=(_name : ::Union(String, Nil)) #

def to_json(json : JSON::Builder) #