Class: FFXIVLodestone::Character::StatList
- Inherits:
-
Hash
- Object
- Hash
- FFXIVLodestone::Character::StatList
- Defined in:
- lib/ffxiv-lodestone.rb
Instance Method Summary collapse
-
#initialize(table) ⇒ StatList
constructor
A new instance of StatList.
- #method_missing(method) ⇒ Object
Constructor Details
#initialize(table) ⇒ StatList
Returns a new instance of StatList.
88 89 90 91 92 |
# File 'lib/ffxiv-lodestone.rb', line 88 def initialize(table) table.search('tr').each do |tr| self[tr.children[0].content.strip.downcase.to_sym] = tr.children[1].content.strip_nbsp.split(' ')[0].to_i end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method) ⇒ Object
94 95 96 97 |
# File 'lib/ffxiv-lodestone.rb', line 94 def method_missing(method) return self[method] if self.key? method super end |