Sha256: 04b8f6326e926a62165dc3afd523664f0118ee7258ed7afad69df07386d45148

Contents?: true

Size: 687 Bytes

Versions: 4

Compression:

Stored size: 687 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Constellation < Base
        def as_json
          {
            constellation_id: constellation_id,
            name: name,
            region_id: region_id,
            systems: systems
          }
        end

        def constellation_id
          options['constellation_id']
        end

        def name
          options['name']
        end

        def region_id
          options['region_id']
        end

        def systems
          options['systems']
        end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eve_online-0.22.0 lib/eve_online/esi/models/constellation.rb
eve_online-0.21.0 lib/eve_online/esi/models/constellation.rb
eve_online-0.20.0 lib/eve_online/esi/models/constellation.rb
eve_online-0.19.0 lib/eve_online/esi/models/constellation.rb