Class: GovDelivery::TMS::Command
- Inherits:
-
Object
- Object
- GovDelivery::TMS::Command
- Includes:
- InstanceResource
- Defined in:
- lib/govdelivery/tms/resource/command.rb
Overview
A command is a combination of behavior and parameters that should be executed when an incoming SMS message matches the associated Keyword.
Instance Attribute Summary collapse
-
#command_type ⇒ String
The type of this command.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#name ⇒ String
The name of the command.
-
#params ⇒ Hash
A Hash of string/string pairs used as configuration for this command.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Attributes included from InstanceResource
Method Summary
Methods included from InstanceResource
Instance Attribute Details
#command_type ⇒ String
The type of this command. A list of valid types can be found by querying the CommandType list.
15 16 17 |
# File 'lib/govdelivery/tms/resource/command.rb', line 15 def command_type @command_type end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
1 2 3 |
# File 'lib/govdelivery/tms/resource/command.rb', line 1 def created_at @created_at end |
#name ⇒ String
The name of the command. This will default to the command_type if not supplied.
15 16 17 |
# File 'lib/govdelivery/tms/resource/command.rb', line 15 def name @name end |
#params ⇒ Hash
A Hash of string/string pairs used as configuration for this command.
15 16 17 |
# File 'lib/govdelivery/tms/resource/command.rb', line 15 def params @params end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
1 2 3 |
# File 'lib/govdelivery/tms/resource/command.rb', line 1 def updated_at @updated_at end |