Sha256: 1881fb5019292abdd0b65dfaf83077628fc53fa79e7ee0a09dd850571acfb90d
Contents?: true
Size: 606 Bytes
Versions: 9
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true require 'active_model' require 'quby/questionnaires/services/definition_validator' module Quby module Questionnaires module Entities class Definition extend ActiveModel::Naming include ActiveModel::Validations attr_accessor :key, :sourcecode, :timestamp, :path def initialize(key:, path:, sourcecode: "", timestamp: nil) @path = path @key = key @sourcecode = sourcecode @timestamp = timestamp end validates_with Services::DefinitionValidator end end end end
Version data entries
9 entries across 9 versions & 1 rubygems