Class: Greeve::Character::CalendarEventAttendees
- Defined in:
- lib/greeve/character/calendar_event_attendees.rb
Overview
A list of all invited attendees for a given event.
Instance Method Summary collapse
-
#initialize(character_id, event_ids, opts = {}) ⇒ CalendarEventAttendees
constructor
A new instance of CalendarEventAttendees.
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
Methods included from Helpers::AttributeToHash
Constructor Details
#initialize(character_id, event_ids, opts = {}) ⇒ CalendarEventAttendees
Returns a new instance of CalendarEventAttendees.
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/greeve/character/calendar_event_attendees.rb', line 21 def initialize(character_id, event_ids, opts = {}) event_ids = [event_ids] unless event_ids.is_a?(Array) opts[:query_params] = { "characterID" => character_id, "eventIDs" => event_ids.join(",") } super(opts) end |