Sha256: 5fbf366da48fdf2012b7b00b4a88f283a55d895c7384b6f34fbddca347d220e3
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
require 'json' require 'messagebird_texter/validator/message' 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? MessagebirdTexter::Validator::Message.new self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
messagebird-texter-0.0.2 | lib/messagebird_texter/message.rb |