Sha256: b4f1bc98e8064496feeef2971c5ad87027679c383c0a27a4e5359add71b8053f

Contents?: true

Size: 466 Bytes

Versions: 4

Compression:

Stored size: 466 Bytes

Contents

module EveOnline
  class JumpCloneImplant
    attr_reader :options

    def initialize(options)
      @options = options
    end

    def as_json
      {
        jump_clone_id: jump_clone_id,
        type_id: type_id,
        type_name: type_name
      }
    end

    def jump_clone_id
      options.fetch('@jumpCloneID').to_i
    end

    def type_id
      options.fetch('@typeID').to_i
    end

    def type_name
      options.fetch('@typeName')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eve_online-0.12.0 lib/eve_online/jump_clone_implant.rb
eve_online-0.11.0 lib/eve_online/jump_clone_implant.rb
eve_online-0.10.0 lib/eve_online/jump_clone_implant.rb
eve_online-0.9.0 lib/eve_online/jump_clone_implant.rb