lib/zenvia/sms.rb in zenvia-0.0.2 vs lib/zenvia/sms.rb in zenvia-0.0.3

- old
+ new

@@ -1,8 +1,8 @@ module Zenvia class Sms - attr_accessor :to, :message, :dispatch, :message_id + attr_accessor :to, :message, :dispatch, :message_id, :callback_option def initialize(to, message) @to, @message = to, message end @@ -16,13 +16,14 @@ private def post_params { - to: to, - message: message, - dispatch: dispatch, - id: message_id + to: to, + message: message, + dispatch: dispatch, + id: message_id, + callbackOption: callback_option }.delete_if { |k,v| v.nil? } end def request @request ||= Request.new