Class: Lich::Gemstone::Society
- Inherits:
-
Object
- Object
- Lich::Gemstone::Society
- Defined in:
- lib/attributes/society.rb
Overview
Represents the Society within the Gemstone module.
Class Method Summary collapse
-
.favor ⇒ Integer
Retrieves the current favor of the society.
-
.member ⇒ String
Duplicates the current status of the society.
-
.rank ⇒ String
Retrieves the current rank of the society.
-
.serialize ⇒ Array<String>
Serializes the current status and rank of the society into an array.
-
.status ⇒ String
Retrieves the current status of the society.
-
.step ⇒ String
Retrieves the current step of the society, which is equivalent to its rank.
-
.task ⇒ String
Retrieves the current task of the society from XML data.
Class Method Details
.favor ⇒ Integer
Retrieves the current favor of the society.
62 63 64 |
# File 'lib/attributes/society.rb', line 62 def self.favor Infomon.get('resources.voln_favor') end |
.member ⇒ String
The returned status is a copy, modifications to it will not affect the original.
Duplicates the current status of the society.
42 43 44 |
# File 'lib/attributes/society.rb', line 42 def self.member self.status.dup end |
.rank ⇒ String
Retrieves the current rank of the society.
22 23 24 |
# File 'lib/attributes/society.rb', line 22 def self.rank Infomon.get("society.rank") end |
.serialize ⇒ Array<String>
Serializes the current status and rank of the society into an array.
71 72 73 |
# File 'lib/attributes/society.rb', line 71 def self.serialize [self.status, self.rank] end |
.status ⇒ String
Retrieves the current status of the society.
12 13 14 |
# File 'lib/attributes/society.rb', line 12 def self.status Infomon.get("society.status") end |
.step ⇒ String
This method is an alias for the rank method.
Retrieves the current step of the society, which is equivalent to its rank.
32 33 34 |
# File 'lib/attributes/society.rb', line 32 def self.step self.rank end |
.task ⇒ String
Retrieves the current task of the society from XML data.
52 53 54 |
# File 'lib/attributes/society.rb', line 52 def self.task XMLData.society_task end |