Sha256: d76c92a558b987c74037c1d53c71a22c243d34d9086933af282b738b694e4909

Contents?: true

Size: 466 Bytes

Versions: 6

Compression:

Stored size: 466 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

6 entries across 6 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/coordinates.rb
eve_online-0.28.0 lib/eve_online/esi/models/coordinates.rb
eve_online-0.27.0 lib/eve_online/esi/models/coordinates.rb
eve_online-0.26.0 lib/eve_online/esi/models/coordinates.rb
eve_online-0.25.0 lib/eve_online/esi/models/coordinates.rb
eve_online-0.24.0 lib/eve_online/esi/models/coordinates.rb