Sha256: 094d04f86d7209f5a5d6cbab7e4aa4154091122b64a4b8f93315c554be78321b
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class CharacterFatigue < Base extend Forwardable API_ENDPOINT = 'https://esi.tech.ccp.is/v1/characters/%<character_id>s/fatigue/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def_delegators :model, :as_json, :jump_fatigue_expire_date, :last_jump_date, :last_update_date def model Models::Fatigue.new(response) end memoize :model def scope 'esi-characters.read_fatigue.v1' end def url format(API_ENDPOINT, character_id: character_id, datasource: datasource) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.17.0 | lib/eve_online/esi/character_fatigue.rb |