Sha256: 240a2a38207047f78bfa4a859e2952869509ae08588284144abf54e5183c30e3

Contents?: true

Size: 1.05 KB

Versions: 16

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class Alliance < Base
        def as_json
          {
            creator_corporation_id: creator_corporation_id,
            creator_id: creator_id,
            date_founded: date_founded,
            executor_corporation_id: executor_corporation_id,
            faction_id: faction_id,
            name: name,
            ticker: ticker
          }
        end

        def creator_corporation_id
          options["creator_corporation_id"]
        end

        def creator_id
          options["creator_id"]
        end

        def date_founded
          date_founded = options["date_founded"]

          parse_datetime_with_timezone(date_founded) if date_founded
        end

        def executor_corporation_id
          options["executor_corporation_id"]
        end

        def faction_id
          options["faction_id"]
        end

        def name
          options["name"]
        end

        def ticker
          options["ticker"]
        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/alliance.rb
eve_online-0.45.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.44.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.43.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.42.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.41.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.40.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.39.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.38.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.37.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.36.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.35.1 lib/eve_online/esi/models/alliance.rb
eve_online-0.35.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.34.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.33.0 lib/eve_online/esi/models/alliance.rb
eve_online-0.32.0 lib/eve_online/esi/models/alliance.rb