class XIVAPI::Dataclasses::Lore

Overview

Dataclass for items returned from the /lore/ endpoint

Defined in:

dataclasses/other/lore.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def context : String #

A String identifying the context that the piece of text was found in.


[View source]
def context=(_context : String) #

Extra data about the piece of Lore, tying it to another endpoint in the API.


[View source]
def data=(_data : ::Union(LoreData, Nil)) #

def source : String #

The name of the source of the piece of Lore.


[View source]
def source=(_source : String) #

def source_id : UInt64 #

The ID of the source.


[View source]
def source_id=(_source_id : UInt64) #

def text : String #

The text of the Lore item.


[View source]
def text=(_text : String) #

def to_json(json : JSON::Builder) #