Sha256: be796d8a1ac3c9f96b1b85bc7d67a49a558f043d0667247cf8aa5d628dd4a45b

Contents?: true

Size: 1.31 KB

Versions: 13

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Faction < Base
        def as_json
          {
            corporation_id: corporation_id,
            description: description,
            faction_id: faction_id,
            is_unique: is_unique,
            militia_corporation_id: militia_corporation_id,
            name: name,
            size_factor: size_factor,
            solar_system_id: solar_system_id,
            station_count: station_count,
            station_system_count: station_system_count
          }
        end

        def corporation_id
          options['corporation_id']
        end

        def description
          options['description']
        end

        def faction_id
          options['faction_id']
        end

        def is_unique
          options['is_unique']
        end

        def militia_corporation_id
          options['militia_corporation_id']
        end

        def name
          options['name']
        end

        def size_factor
          options['size_factor']
        end

        def solar_system_id
          options['solar_system_id']
        end

        def station_count
          options['station_count']
        end

        def station_system_count
          options['station_system_count']
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eve_online-0.29.0 lib/eve_online/esi/models/faction.rb
eve_online-0.28.0 lib/eve_online/esi/models/faction.rb
eve_online-0.27.0 lib/eve_online/esi/models/faction.rb
eve_online-0.26.0 lib/eve_online/esi/models/faction.rb
eve_online-0.25.0 lib/eve_online/esi/models/faction.rb
eve_online-0.24.0 lib/eve_online/esi/models/faction.rb
eve_online-0.23.0 lib/eve_online/esi/models/faction.rb
eve_online-0.22.0 lib/eve_online/esi/models/faction.rb
eve_online-0.21.0 lib/eve_online/esi/models/faction.rb
eve_online-0.20.0 lib/eve_online/esi/models/faction.rb
eve_online-0.19.0 lib/eve_online/esi/models/faction.rb
eve_online-0.18.0 lib/eve_online/esi/models/faction.rb
eve_online-0.17.0 lib/eve_online/esi/models/faction.rb