Sha256: 5e385fd3ebfc58203873ee7ff429fd981d11a7b06ce2aae7dc3adb1a032b5be3

Contents?: true

Size: 650 Bytes

Versions: 10

Compression:

Stored size: 650 Bytes

Contents

module PortaText
  module Command
    module Api
      # An SMS campaign.
      # https://github.com/PortaText/docs/wiki/REST-API#api_campaigns
      #
      # Author::    Marcelo Gornstein (mailto:marcelog@portatext.com)
      # Copyright:: Copyright (c) 2015 PortaText
      # License::   Apache-2.0
      class SmsCampaign < Campaigns
        def use_template(template_id, variables)
          set :settings, template_id: template_id, variables: variables
        end

        def text(text)
          set :settings, text: text
        end

        def initialize
          super
          set :type, 'sms'
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
portatext-1.3.1 lib/portatext/command/api/sms_campaign.rb
portatext-1.3.0 lib/portatext/command/api/sms_campaign.rb
portatext-1.2.0 lib/portatext/command/api/sms_campaign.rb
portatext-1.1.11 lib/portatext/command/api/sms_campaign.rb
portatext-1.1.10 lib/portatext/command/api/sms_campaign.rb
portatext-1.1.9 lib/portatext/command/api/sms_campaign.rb
portatext-1.1.8 lib/portatext/command/api/sms_campaign.rb
portatext-1.1.7 lib/portatext/command/api/sms_campaign.rb
portatext-1.1.6 lib/portatext/command/api/sms_campaign.rb
portatext-1.1.5 lib/portatext/command/api/sms_campaign.rb