Sha256: 3b5e8fca9cc3950319912b6aa8b8f5e688faa9fbcb3b50ba6da8c5d5713fbf43
Contents?: true
Size: 503 Bytes
Versions: 4
Compression:
Stored size: 503 Bytes
Contents
require 'memoist' module EveOnline class CharacterJumpClones extend Memoist attr_reader :result def initialize(result) @result = result end def jump_clones output = [] rowset.each do |jump_clone| output << JumpClone.new(jump_clone) end output end memoize :jump_clones private def rowset result.fetch('rowset').reject { |a| a.fetch('@name') != 'jumpClones' }.first.fetch('row') end memoize :rowset end end
Version data entries
4 entries across 4 versions & 1 rubygems