Sha256: 16362b75074c68233c673c83bf2a9dd86ca2315e1ee70c5baa394ec58e1b6f12
Contents?: true
Size: 800 Bytes
Versions: 3
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.evetech.net/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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.20.0 | lib/eve_online/esi/character_fatigue.rb |
eve_online-0.19.0 | lib/eve_online/esi/character_fatigue.rb |
eve_online-0.18.0 | lib/eve_online/esi/character_fatigue.rb |