Sha256: 46f3ed86473adb1d3a4530f9f3e433dd0a0b2d2406d5a081dccb2910f5b532c6
Contents?: true
Size: 537 Bytes
Versions: 4
Compression:
Stored size: 537 Bytes
Contents
module EveOnline class Skill attr_reader :options def initialize(options) @options = options end def as_json { type_id: type_id, skillpoints: skillpoints, level: level, published: published } end def type_id options.fetch('@typeID').to_i end def skillpoints options.fetch('@skillpoints').to_i end def level options.fetch('@level').to_i end def published options.fetch('@published') == '1' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.12.0 | lib/eve_online/skill.rb |
eve_online-0.11.0 | lib/eve_online/skill.rb |
eve_online-0.10.0 | lib/eve_online/skill.rb |
eve_online-0.9.0 | lib/eve_online/skill.rb |