Sha256: d5841fd2ceb1782d3a5cccb49620141cb231ea24525a8179031ee9f1bc8ee7e0
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class CharacterLocation < Base extend Forwardable API_PATH = '/v1/characters/%<character_id>s/location/' 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 @model ||= Models::CharacterLocation.new(response) end def scope 'esi-location.read_location.v1' end def path format("#{ API_PATH }", character_id: character_id) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.29.0 | lib/eve_online/esi/character_location.rb |
eve_online-0.28.0 | lib/eve_online/esi/character_location.rb |