Class: Waterworks::Terminate

Inherits:
PipelineObject show all
Defined in:
lib/waterworks/actions/terminate.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PipelineObject

#<=>, base_attrs, #collect_attrs!, from_hash, from_json, #set_attrs, #sourceify, #to_fhash, #to_hash, #to_json

Constructor Details

#initialize(id = nil, name = nil) ⇒ Terminate

Returns a new instance of Terminate.



14
15
16
# File 'lib/waterworks/actions/terminate.rb', line 14

def initialize(id = nil, name = nil)
  super(id, name).set_attrs(type: 'Terminate')
end

Class Method Details

.safe_fieldsObject



5
6
7
8
9
10
# File 'lib/waterworks/actions/terminate.rb', line 5

def self.safe_fields
  {
    parent: :ref,
    type: :string,
  }.merge superclass.safe_fields
end