Sha256: a28055894830c29966a9c32a77be0b7f423b7c9d5ca2c1c4cba2d4f30a848282

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Race < Base
        def as_json
          {
            alliance_id: alliance_id,
            description: description,
            name: name,
            race_id: race_id,
          }
        end

        def alliance_id
          options["alliance_id"]
        end

        def description
          options["description"]
        end

        def name
          options["name"]
        end

        def race_id
          options["race_id"]
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.31.0 lib/eve_online/esi/models/race.rb
eve_online-0.30.0 lib/eve_online/esi/models/race.rb