Sha256: a3d0d57b680251b6ea7b0cec87352d86b5b4d0b555c913526bad08add9e41b84
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
# typed: strict # frozen_string_literal: true require "nexus/invision/value_object" require "sorbet-runtime" module Nexus module Invision module Requests class CreateMessage < T::Struct extend T::Sig include ValueObject const :from, Integer const :to, T::Array[Integer] const :title, String const :body, String sig { override.returns(T::Hash[String, T.untyped]) } def serialize { "from" => @from, "to" => @to.map(&:to_s).join(","), "title" => @title, "body" => @body, } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nexus-invision-1.8.0 | lib/nexus/invision/requests/create_message.rb |