Sha256: ef82347eec2ca7383b372e54ec0cc6072726b76db09ecc651070b187f00b7d3e

Contents?: true

Size: 453 Bytes

Versions: 10

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class PlanetShort < Base
        def as_json
          {
            planet_id: planet_id
          }
        end

        def planet_id
          options['planet_id']
        end

        def asteroid_belt_ids
          options.fetch('asteroid_belts', [])
        end

        def moon_ids
          options.fetch('moons', [])
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/planet_short.rb
eve_online-0.28.0 lib/eve_online/esi/models/planet_short.rb
eve_online-0.27.0 lib/eve_online/esi/models/planet_short.rb
eve_online-0.26.0 lib/eve_online/esi/models/planet_short.rb
eve_online-0.25.0 lib/eve_online/esi/models/planet_short.rb
eve_online-0.24.0 lib/eve_online/esi/models/planet_short.rb
eve_online-0.23.0 lib/eve_online/esi/models/planet_short.rb
eve_online-0.22.0 lib/eve_online/esi/models/planet_short.rb
eve_online-0.21.0 lib/eve_online/esi/models/planet_short.rb
eve_online-0.20.0 lib/eve_online/esi/models/planet_short.rb