Class: GovDelivery::TMS::CommandType

Inherits:
Object
  • Object
show all
Includes:
InstanceResource
Defined in:
lib/govdelivery/tms/resource/command_type.rb

Overview

CommandType is a pair of values (name, string_fields, array_fields) that can be attached to a Keyword (in a Command object).

This resource is read-only.

Instance Attribute Summary collapse

Attributes included from InstanceResource

#response

Method Summary

Methods included from InstanceResource

included

Instance Attribute Details

#array_fieldsArray

An array of strings representing the different array fields on this CommandType. Field values will always be arrays of strings.

Returns:

  • (Array)

    the current value of array_fields



13
14
15
# File 'lib/govdelivery/tms/resource/command_type.rb', line 13

def array_fields
  @array_fields
end

#nameString

The name of the CommandType.

Returns:

  • (String)

    the current value of name



13
14
15
# File 'lib/govdelivery/tms/resource/command_type.rb', line 13

def name
  @name
end

#string_fieldsArray

An Array of strings representing the different string_fields on this CommandType. Field values will always be strings.

Returns:

  • (Array)

    the current value of string_fields



13
14
15
# File 'lib/govdelivery/tms/resource/command_type.rb', line 13

def string_fields
  @string_fields
end