Sha256: 408179b55825c419581a88617ae35537105e8dbcb29ab2304592b32a9cfc1de7

Contents?: true

Size: 671 Bytes

Versions: 4

Compression:

Stored size: 671 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Region < Base
        def as_json
          {
            constellations: constellations, # TODO: rename constellations -> constellation_ids and remove from as_json
            description: description,
            name: name,
            region_id: region_id
          }
        end

        def constellations
          options['constellations']
        end

        def description
          options['description']
        end

        def name
          options['name']
        end

        def region_id
          options['region_id']
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/region.rb
eve_online-0.28.0 lib/eve_online/esi/models/region.rb
eve_online-0.27.0 lib/eve_online/esi/models/region.rb
eve_online-0.26.0 lib/eve_online/esi/models/region.rb