Module: FFXIVLodestone::Serializable
- Included in:
- Character::SkillList::Skill
- Defined in:
- lib/ffxiv-lodestone.rb
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
64 65 66 67 68 69 |
# File 'lib/ffxiv-lodestone.rb', line 64 def to_hash serialize_properties.reduce(Hash.new) {|h,sym| h[sym] = self.send(sym) h } end |
#to_json(args = {}) ⇒ Object
72 73 74 |
# File 'lib/ffxiv-lodestone.rb', line 72 def to_json(args={}) self.to_hash.to_json end |
#to_yaml_properties ⇒ Object
60 61 62 |
# File 'lib/ffxiv-lodestone.rb', line 60 def to_yaml_properties serialize_properties.map {|sym| "@%s" % sym } end |