Module: Lich::Currency

Defined in:
documented/gemstone/infomon/currency.rb

Overview

The Currency module provides methods to retrieve various types of currency. It interacts with the Infomon service to fetch currency data.

Examples:

Fetching silver currency

silver_amount = Lich::Currency.silver

Class Method Summary collapse

Class Method Details

.blackscripInteger

Retrieves the amount of blackscrip currency.

Examples:

Fetching blackscrip

scrip_amount = Lich::Currency.blackscrip

Returns:

  • (Integer)

    The amount of blackscrip.



47
48
49
# File 'documented/gemstone/infomon/currency.rb', line 47

def self.blackscrip
  Lich::Gemstone::Infomon.get('currency.blackscrip')
end

.bloodscripInteger

Retrieves the amount of bloodscrip currency.

Examples:

Fetching bloodscrip

bloodscrip_amount = Lich::Currency.bloodscrip

Returns:

  • (Integer)

    The amount of bloodscrip.



55
56
57
# File 'documented/gemstone/infomon/currency.rb', line 55

def self.bloodscrip
  Lich::Gemstone::Infomon.get('currency.bloodscrip')
end

.elansInteger

Retrieves the amount of elans currency.

Examples:

Fetching elans

elans_amount = Lich::Currency.elans

Returns:

  • (Integer)

    The amount of elans.



79
80
81
# File 'documented/gemstone/infomon/currency.rb', line 79

def self.elans
  Lich::Gemstone::Infomon.get('currency.elans')
end

.ethereal_scripInteger

Retrieves the amount of ethereal scrip currency.

Examples:

Fetching ethereal scrip

ethereal_amount = Lich::Currency.ethereal_scrip

Returns:

  • (Integer)

    The amount of ethereal scrip.



63
64
65
# File 'documented/gemstone/infomon/currency.rb', line 63

def self.ethereal_scrip
  Lich::Gemstone::Infomon.get('currency.ethereal_scrip')
end

.gemstone_dustInteger

Retrieves the amount of gemstone dust currency.

Examples:

Fetching gemstone dust

dust_amount = Lich::Currency.gemstone_dust

Returns:

  • (Integer)

    The amount of gemstone dust.



103
104
105
# File 'documented/gemstone/infomon/currency.rb', line 103

def self.gemstone_dust
  Lich::Gemstone::Infomon.get('currency.gemstone_dust')
end

.gigas_artifact_fragmentsInteger

Retrieves the amount of gigas artifact fragments currency.

Examples:

Fetching gigas artifact fragments

fragments = Lich::Currency.gigas_artifact_fragments

Returns:

  • (Integer)

    The amount of gigas artifact fragments.



95
96
97
# File 'documented/gemstone/infomon/currency.rb', line 95

def self.gigas_artifact_fragments
  Lich::Gemstone::Infomon.get('currency.gigas_artifact_fragments')
end

.raikhenInteger

Retrieves the amount of raikhen currency.

Examples:

Fetching raikhen

raikhen_amount = Lich::Currency.raikhen

Returns:

  • (Integer)

    The amount of raikhen.



71
72
73
# File 'documented/gemstone/infomon/currency.rb', line 71

def self.raikhen
  Lich::Gemstone::Infomon.get('currency.raikhen')
end

.redsteel_marksInteger

Retrieves the amount of redsteel marks currency.

Examples:

Fetching redsteel marks

marks = Lich::Currency.redsteel_marks

Returns:

  • (Integer)

    The amount of redsteel marks.



31
32
33
# File 'documented/gemstone/infomon/currency.rb', line 31

def self.redsteel_marks
  Lich::Gemstone::Infomon.get('currency.redsteel_marks')
end

.silverInteger

Retrieves the amount of silver currency.

Examples:

Fetching silver

amount = Lich::Currency.silver

Returns:

  • (Integer)

    The amount of silver.



15
16
17
# File 'documented/gemstone/infomon/currency.rb', line 15

def self.silver
  Lich::Gemstone::Infomon.get('currency.silver')
end

.silver_containerString

Retrieves the silver container information.

Examples:

Fetching silver container

container = Lich::Currency.silver_container

Returns:

  • (String)

    The silver container details.



23
24
25
# File 'documented/gemstone/infomon/currency.rb', line 23

def self.silver_container
  Lich::Gemstone::Infomon.get('currency.silver_container')
end

.soul_shardsInteger

Retrieves the amount of soul shards currency.

Examples:

Fetching soul shards

soul_shard_amount = Lich::Currency.soul_shards

Returns:

  • (Integer)

    The amount of soul shards.



87
88
89
# File 'documented/gemstone/infomon/currency.rb', line 87

def self.soul_shards
  Lich::Gemstone::Infomon.get('currency.soul_shards')
end

.ticketsInteger

Retrieves the amount of tickets currency.

Examples:

Fetching tickets

ticket_count = Lich::Currency.tickets

Returns:

  • (Integer)

    The amount of tickets.



39
40
41
# File 'documented/gemstone/infomon/currency.rb', line 39

def self.tickets
  Lich::Gemstone::Infomon.get('currency.tickets')
end