Sha256: deec9289f88339a25872cb323b1b012abb6b918489b8b56bab7ce4ca0561250e

Contents?: true

Size: 949 Bytes

Versions: 5

Compression:

Stored size: 949 Bytes

Contents

module PortaText
  module Command
    module Api
      # A Telephony 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 TelCampaign < Campaigns
        def iterations(iterations)
          set_setting :iterations, iterations
        end

        def agents(agents)
          set_setting :agents, agents
        end

        def post_call_work_duration(seconds)
          set_setting :post_call_work_duration, seconds
        end

        def min_iteration_time(minutes)
          set_setting :min_iteration_time, minutes
        end

        def outbound_trunk_id(trunk_id)
          set_setting :outbound_trunk_id, trunk_id
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
portatext-1.5.23 lib/portatext/command/api/tel_campaign.rb
portatext-1.5.22 lib/portatext/command/api/tel_campaign.rb
portatext-1.5.21 lib/portatext/command/api/tel_campaign.rb
portatext-1.5.20 lib/portatext/command/api/tel_campaign.rb
portatext-1.5.19 lib/portatext/command/api/tel_campaign.rb