iZettle/ninetails

View on GitHub
app/components/ninetails/property.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Ninetails
  class Property
    include Ninetails::PropertyStore

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