Class: Nexus::Invision::Requests::CreateMessage

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Includes:
ValueObject
Defined in:
lib/nexus/invision/requests/create_message.rb

Instance Method Summary collapse

Methods included from ValueObject

#class, #eql?

Instance Method Details

#serializeObject



20
21
22
23
24
25
26
27
# File 'lib/nexus/invision/requests/create_message.rb', line 20

def serialize
  {
    "from" => @from,
    "to" => @to.map(&:to_s).join(","),
    "title" => @title,
    "body" => @body,
  }
end