Sha256: 8f99bd7de57348bbb7c01a2164544d3a6b88287b5b3bba2c456cd0b878049860

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

Stored size: 574 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.33.0 lib/eve_online/esi/models/race.rb
eve_online-0.32.0 lib/eve_online/esi/models/race.rb