Sha256: 417919fb1f1191b466d9e3ef954bb6cc765754866f165080010e248d535b6c35

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Coordinates < Base
        def as_json
          {
            x: x,
            y: y,
            z: z,
          }
        end

        # TODO: check 'options && '
        def x
          options && options["x"]
        end

        def y
          options && options["y"]
        end

        def z
          options && options["z"]
        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/coordinates.rb
eve_online-0.30.0 lib/eve_online/esi/models/coordinates.rb