Class: Ninetails::Property

Inherits:
Object
  • Object
show all
Includes:
PropertyStore
Defined in:
app/components/ninetails/property.rb

Class Method Summary collapse

Class Method Details

.serializeObject



5
6
7
8
9
10
# File 'app/components/ninetails/property.rb', line 5

def self.serialize
  properties.each_with_object({}) do |property, hash|
    hash[:reference] = SecureRandom.uuid
    hash[property.name] = property.serialize
  end
end