Sha256: 5ac04ef184018ac4eef48917875d1a263fc4f08999cd268a42ed4b73402cc530

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class AssetLocation < Base
        def as_json
          {
            item_id: item_id,
          }
        end

        def item_id
          options["item_id"]
        end

        def position
          @position ||= Position.new(options["position"])
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.31.0 lib/eve_online/esi/models/asset_location.rb
eve_online-0.30.0 lib/eve_online/esi/models/asset_location.rb