Class: Nylas::NewMessage
- Inherits:
-
Object
- Object
- Nylas::NewMessage
- Includes:
- Model
- Defined in:
- lib/nylas/new_message.rb
Overview
Data structure for sending a message via the Nylas API
Instance Attribute Summary
Attributes included from Model
Instance Method Summary collapse
Methods included from Model
#create, #destroy, #execute, included, #model_class, #persisted?, #reload, #resource_path, #resources_path, #save, #save_all_attributes, #to_json, #update, #update_all_attributes
Instance Method Details
#send! ⇒ Object
29 30 31 |
# File 'lib/nylas/new_message.rb', line 29 def send! Message.new(**api.execute(method: :post, path: "/send", payload: to_json).merge(api: api)) end |