Sha256: b214a396b256fe75f6a7869a8230058a292486126ecb7841e38a95dccddc9ce8

Contents?: true

Size: 571 Bytes

Versions: 14

Compression:

Stored size: 571 Bytes

Contents

# frozen_string_literal: true

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

        def faction_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

14 entries across 14 versions & 1 rubygems

Version Path
eve_online-0.46.0 lib/eve_online/esi/models/race.rb
eve_online-0.45.0 lib/eve_online/esi/models/race.rb
eve_online-0.44.0 lib/eve_online/esi/models/race.rb
eve_online-0.43.0 lib/eve_online/esi/models/race.rb
eve_online-0.42.0 lib/eve_online/esi/models/race.rb
eve_online-0.41.0 lib/eve_online/esi/models/race.rb
eve_online-0.40.0 lib/eve_online/esi/models/race.rb
eve_online-0.39.0 lib/eve_online/esi/models/race.rb
eve_online-0.38.0 lib/eve_online/esi/models/race.rb
eve_online-0.37.0 lib/eve_online/esi/models/race.rb
eve_online-0.36.0 lib/eve_online/esi/models/race.rb
eve_online-0.35.1 lib/eve_online/esi/models/race.rb
eve_online-0.35.0 lib/eve_online/esi/models/race.rb
eve_online-0.34.0 lib/eve_online/esi/models/race.rb