Class: Waterworks::Property

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

Returns a new instance of Property.



16
17
18
# File 'lib/waterworks/utilities/property.rb', line 16

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

Class Method Details

.safe_fieldsObject



5
6
7
8
9
10
11
12
# File 'lib/waterworks/utilities/property.rb', line 5

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