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

Version Path
quby-4.0.4 lib/quby/questionnaires/entities/definition.rb
quby-4.0.3 lib/quby/questionnaires/entities/definition.rb
quby-4.0.2 lib/quby/questionnaires/entities/definition.rb
quby-4.0.1 lib/quby/questionnaires/entities/definition.rb
quby-4.0.0 lib/quby/questionnaires/entities/definition.rb
quby-3.2.2 lib/quby/questionnaires/entities/definition.rb
quby-3.2.1 lib/quby/questionnaires/entities/definition.rb
quby-3.2.0 lib/quby/questionnaires/entities/definition.rb
quby-3.2.0.pre.pre1 lib/quby/questionnaires/entities/definition.rb