Sha256: b66e44e87c8fdd544d2fe943e60e0c103781e810bd61086341a5752c1bdaeeb5
Contents?: true
Size: 794 Bytes
Versions: 3
Compression:
Stored size: 794 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class CharacterLocation < Base extend Forwardable API_ENDPOINT = 'https://esi.evetech.net/v1/characters/%<character_id>s/location/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def_delegators :model, :as_json, :solar_system_id, :station_id, :structure_id def model Models::CharacterLocation.new(response) end memoize :model def scope 'esi-location.read_location.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_location.rb |
eve_online-0.19.0 | lib/eve_online/esi/character_location.rb |
eve_online-0.18.0 | lib/eve_online/esi/character_location.rb |