Class: Waterworks::Schedule

Inherits:
PipelineObject show all
Defined in:
lib/waterworks/schedule/schedule.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) ⇒ Schedule

Returns a new instance of Schedule.



19
20
21
# File 'lib/waterworks/schedule/schedule.rb', line 19

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

Class Method Details

.safe_fieldsObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/waterworks/schedule/schedule.rb', line 5

def self.safe_fields
  {
    endDateTime: :string,
    occurrences: :string,
    parent: :ref,
    period: :string,
    startAt: :string,
    startDateTime: :string,
    type: :string,
  }.merge superclass.safe_fields
end