Sha256: 134caa9e50e2fe28f2fec679893be0836f535533d1bb5eb4fdac6788465e3229
Contents?: true
Size: 691 Bytes
Versions: 15
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true require "forwardable" module EveOnline module ESI class CharacterLocation < Base extend Forwardable API_PATH = "/v2/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
15 entries across 15 versions & 1 rubygems