Sha256: 3385dbc841db8fe06173ade5c94760af841e9ff94db20eead3e3be70c0282f2f

Contents?: true

Size: 519 Bytes

Versions: 6

Compression:

Stored size: 519 Bytes

Contents

module Roqua
  module CoreApi
    # @api private
    class SendTextMessageTo < ActiveInteraction::Base
      object :session, class: Sessions::AuthSession
      string :person_id
      hash :attributes do
        string :body
        string :reference, default: nil
      end

      # Possible variables in the body are:
      #   %firstname%,
      #   %lastname%,
      #   %initials%
      def execute
        session.post "/text_messages", text_message: attributes, person_id: person_id
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
roqua-core-api-0.7.0 lib/roqua/core_api/send_text_message_to.rb
roqua-core-api-0.6.0 lib/roqua/core_api/send_text_message_to.rb
roqua-core-api-0.5.0 lib/roqua/core_api/send_text_message_to.rb
roqua-core-api-0.4.0 lib/roqua/core_api/send_text_message_to.rb
roqua-core-api-0.3.1 lib/roqua/core_api/send_text_message_to.rb
roqua-core-api-0.3.0 lib/roqua/core_api/send_text_message_to.rb