Sha256: 19ce4753a0b07675d4438e1d8ce8e574b6781f6ae8ff85c719588fc0df409272
Contents?: true
Size: 802 Bytes
Versions: 4
Compression:
Stored size: 802 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterCalendar < Base API_PATH = '/v1/characters/%<character_id>s/calendar/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) # TODO: # @from_event = end def events @events ||= begin output = [] response.each do |event| output << Models::Event.new(event) end output end end def scope 'esi-calendar.read_calendar_events.v1' end def url format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems