Ravn::Tactical::
Bolt class
Superclass | Object |
Included Modules |
|
Extended With |
|
A bolt-creation object for populating tailored Bolts in mission files.
Constants
- DEFAULT_TEXT
The default message contents for a
Bolt
- DEFAULT_TIMEOUT
The default number of seconds after initiation before finishing the bolt
Attributes
- components R
The bolt’s configured components
- description RW
The bolt’s human-readable description
- id RW
The bolt’s id
- name RW
The bolt’s vernacular type
- options R
Additional configuration options for the
Bolt
- text RW
The bolt’s message text
- timeout RW
The bolt’s timeout
- to R
Segment the bolt will be delivered to
- type RW
The bolt’s canonical type
- validation_error RW
The description of the problem the last time the
Bolt
was checked for validity.
Public Class Methods
Create a new bolt description with the given fields
.
Public Instance Methods
Comparison API – returns true
if other_object
has the same fields
as the receiver.
Pattern-matching API – return a Hash that is used when pattern-matching on this Bolt
.
Return a Hash of the Bolt’s values, suitable for addition to a Mission’s bolts
section.
Ravn::Inspection API – return the details portion of the object’s debugging string form.
Returns true
if the bolt’s values are valid. If the the Bolt
isn’t valid, the validation_error
will be set with a description of the validation problem.