Sha256: c724cb3fb5338df86629d38a3131ef35a26de1139748b1a36afa04ba1bd3381a

Contents?: true

Size: 1.31 KB

Versions: 16

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

16 entries across 16 versions & 1 rubygems

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