class Tourmaline::UniqueGiftModel

Overview

This object describes the model of a unique gift.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, sticker : Tourmaline::Sticker, rarity_per_mille : Int32 | Int64, rarity : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def name : String #

Name of the model


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

Name of the model


[View source]
def rarity : String | Nil #

Optional. Rarity of the model if it is a crafted model. Currently, can be "uncommon", "rare", "epic", or "legendary".


[View source]
def rarity=(rarity : String | Nil) #

Optional. Rarity of the model if it is a crafted model. Currently, can be "uncommon", "rare", "epic", or "legendary".


[View source]
def rarity_per_mille : Int32 | Int64 #

The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted gifts.


[View source]
def rarity_per_mille=(rarity_per_mille : Int32 | Int64) #

The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted gifts.


[View source]
def sticker : Tourmaline::Sticker #

The sticker that represents the unique gift


[View source]
def sticker=(sticker : Tourmaline::Sticker) #

The sticker that represents the unique gift


[View source]