Class: EveOnline::ESI::CharacterCalendarEvent
- Inherits:
-
Base
- Object
- Base
- 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/"
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.
Instance Method Summary collapse
-
#initialize(options) ⇒ CharacterCalendarEvent
constructor
A new instance of CharacterCalendarEvent.
- #model ⇒ Object
- #path ⇒ Object
- #scope ⇒ Object
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 |