Sha256: 9e755ee355b071c6c7b8a154be2f11ac5c80758b1207563ed7acb6bd10bbacbb

Contents?: true

Size: 1.05 KB

Versions: 12

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

12 entries across 12 versions & 1 rubygems

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