Class: EveOnline::ESI::CharacterCalendarEvent
- Extended by:
- Forwardable
- Defined in:
- lib/eve_online/esi/character_calendar_event.rb
Constant Summary collapse
- API_PATH =
"/v4/characters/%<character_id>s/calendar/%<event_id>s/"
Constants inherited from Base
Instance Attribute Summary collapse
-
#character_id ⇒ Object
readonly
Returns the value of attribute character_id.
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
Attributes inherited from Base
#_open_timeout, #_read_timeout, #_write_timeout, #adapter, #language, #middlewares, #token
Instance Method Summary collapse
-
#initialize(options) ⇒ CharacterCalendarEvent
constructor
A new instance of CharacterCalendarEvent.
- #model ⇒ Object
- #path ⇒ Object
- #scope ⇒ Object
Methods inherited from Base
#add_middleware, #additional_query_params, #base_query_params, #connection, #error_limit_remain, #error_limit_reset, #http_method, #open_timeout, #open_timeout=, #page, #query, #read_timeout, #read_timeout=, #request_id, #resource, #response, #total_pages, #uri, #url, #user_agent, #write_timeout, #write_timeout=
Constructor Details
#initialize(options) ⇒ CharacterCalendarEvent
Returns a new instance of CharacterCalendarEvent.
12 13 14 15 16 17 |
# File 'lib/eve_online/esi/character_calendar_event.rb', line 12 def initialize() super @character_id = .fetch(:character_id) @event_id = .fetch(:event_id) end |
Instance Attribute Details
#character_id ⇒ Object (readonly)
Returns the value of attribute character_id.
10 11 12 |
# File 'lib/eve_online/esi/character_calendar_event.rb', line 10 def character_id @character_id end |
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
10 11 12 |
# File 'lib/eve_online/esi/character_calendar_event.rb', line 10 def event_id @event_id end |
Instance Method Details
#model ⇒ Object
22 23 24 |
# File 'lib/eve_online/esi/character_calendar_event.rb', line 22 def model @model ||= Models::EventDetails.new(response) end |
#path ⇒ Object
30 31 32 |
# File 'lib/eve_online/esi/character_calendar_event.rb', line 30 def path format(API_PATH, character_id: character_id, event_id: event_id) end |
#scope ⇒ Object
26 27 28 |
# File 'lib/eve_online/esi/character_calendar_event.rb', line 26 def scope "esi-calendar.read_calendar_events.v1" end |