Sha256: d43ac0a937d7523e3621d5b2052bdb2cf2e1a49d7a027bb28e78f4d41c47026d

Contents?: true

Size: 1.05 KB

Versions: 20

Compression:

Stored size: 1.05 KB

Contents

module GovDelivery::TMS #:nodoc:
  # A command is a combination of behavior and parameters that should be executed
  # when an incoming SMS message matches the associated Keyword.
  #
  # @attr name [String] The name of the command.  This will default to the command_type if not supplied.
  # @attr command_type [String] The type of this command.  A list of valid types can be found by querying the CommandType list.
  # @attr params [Hash] A Hash of string/string pairs used as configuration for this command.
  #
  # @example
  #    command = keyword.commands.build(:name => "subscribe to news", :command_type => "dcm_subscribe", :dcm_account_code => "NEWS", :dcm_topic_codes => "NEWS_1, NEWS_2")
  #    command.post
  #    command.dcm_topic_codes += ", NEWS_5"
  #    command.put
  #    command.delete
  class Command
    include InstanceResource

    # @!parse attr_accessor :name, :command_type, :params
    writeable_attributes :name, :command_type, :params

    # @!parse attr_reader :created_at, :updated_at
    readonly_attributes :created_at, :updated_at
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
govdelivery-tms-3.0.0 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-2.8.4 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-2.8.3 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.10.1 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.10.0 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.9.4 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.9.3 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.9.2 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.9.0 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.14 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.13 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.12 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.11 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.10 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.9 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.8 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.7 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.5 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.4 lib/govdelivery/tms/resource/command.rb
govdelivery-tms-0.8.3 lib/govdelivery/tms/resource/command.rb