Sha256: 55694ea9ddda00f3422f5712dfe69222276fcbab6e4f3c43637eab70928cb9d0

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

require 'forwardable'

module EveOnline
  module ESI
    class ServerStatus < Base
      extend Forwardable

      API_ENDPOINT = 'https://esi.tech.ccp.is/v1/status/?datasource=tranquility'.freeze

      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
        API_ENDPOINT
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eve_online-0.14.0 lib/eve_online/esi/server_status.rb
eve_online-0.13.0 lib/eve_online/esi/server_status.rb