Sha256: 5232566aa21278a74249c0a406c46a0d6df98f977b81fd73a43cd06ab9d2cdbc
Contents?: true
Size: 834 Bytes
Versions: 2
Compression:
Stored size: 834 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterCalendar < Base API_PATH = '/v1/characters/%<character_id>s/calendar/' attr_reader :character_id, :from_event def initialize(options) super @character_id = options.fetch(:character_id) @from_event = options.fetch(:from_event, nil) 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 additation_query_params [:from_event] 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_calendar.rb |
eve_online-0.28.0 | lib/eve_online/esi/character_calendar.rb |