Sha256: a253daa363db897cd3f1d6a1a5131b21258ae517a7a17e86f0b6d2b1944e822c

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'

module EveOnline
  module ESI
    class ServerStatus < Base
      extend Forwardable

      API_ENDPOINT = 'https://esi.evetech.net/v1/status/?datasource=%<datasource>s'

      def_delegators :model, :as_json, :start_time, :players, :server_version, :vip

      def model
        Models::ServerStatus.new(response)
      end
      memoize :model

      def scope; end

      def url
        format(API_ENDPOINT, datasource: datasource)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eve_online-0.20.0 lib/eve_online/esi/server_status.rb
eve_online-0.19.0 lib/eve_online/esi/server_status.rb
eve_online-0.18.0 lib/eve_online/esi/server_status.rb