Sha256: e9471da8a0d303122819088e07bec903b0e0bff239c270f05543890084c4d29e
Contents?: true
Size: 329 Bytes
Versions: 2
Compression:
Stored size: 329 Bytes
Contents
require 'json' module MessagebirdTexter class Message < ActionTexter::Message def request MessagebirdTexter::Request.new(to_json) end def to_json JSON.generate(recipients: to, originator: from, body: body) end def valid? true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
messagebird-texter-0.1.1 | lib/messagebird_texter/message.rb |
messagebird-texter-0.1.0 | lib/messagebird_texter/message.rb |