Class: Nylas::Rsvp

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/nylas/rsvp.rb

Overview

Allows RSVPing to a particular event

Instance Attribute Summary collapse

Attributes included from Model

#api

Instance Method Summary collapse

Methods included from Model

#create, #destroy, #execute, included, #model_class, #persisted?, #reload, #resource_path, #resources_path, #save_all_attributes, #to_json, #update, #update_all_attributes

Instance Attribute Details

#notify_participantsObject

Returns the value of attribute notify_participants.



13
14
15
# File 'lib/nylas/rsvp.rb', line 13

def notify_participants
  @notify_participants
end

Instance Method Details

#saveObject



15
16
17
18
19
20
21
22
# File 'lib/nylas/rsvp.rb', line 15

def save
  api.execute(
    method: :post,
    path: "/send-rsvp",
    payload: attributes.serialize_for_api,
    query: { notify_participants: notify_participants }
  )
end