Sha256: 7d389a85aa2ec2612d9964b3c74363bfbecf1f378168f2698e69e9aeb511ce92

Contents?: true

Size: 672 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
eve_online-0.30.0 lib/eve_online/esi/models/region.rb