class Arbetsformedlingen::Document

Public Class Methods

new(hash) click to toggle source
Calls superclass method
# File lib/arbetsformedlingen/models/document.rb, line 21
def initialize(hash)
  data = {
    id: SecureRandom.uuid,
    timestamp: Time.now.utc.iso8601,
  }.merge!(hash)

  super(DocumentSchema.call(data))
end