Sha256: 753ff7f88c10714e15e5d71dce0eabf36d6de38eb455a95ebde9b2ca81bf25c4

Contents?: true

Size: 766 Bytes

Versions: 14

Compression:

Stored size: 766 Bytes

Contents

module Expressir
  module Model
    class SubtypeConstraint < ModelElement
      include Identifier

      model_attr_accessor :applies_to
      model_attr_accessor :abstract
      model_attr_accessor :total_over
      model_attr_accessor :supertype_expression

      def initialize(options = {})
        @id = options[:id]
        @remarks = options[:remarks] || []
        @remark_items = options[:remark_items] || []
        @source = options[:source]

        @applies_to = options[:applies_to]
        @abstract = options[:abstract]
        @total_over = options[:total_over] || []
        @supertype_expression = options[:supertype_expression]

        super
      end

      def children
        [
          *remark_items
        ]
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
expressir-1.0.0 lib/expressir/model/subtype_constraint.rb
expressir-1.0.0-x86_64-linux lib/expressir/model/subtype_constraint.rb
expressir-1.0.0-x86_64-darwin lib/expressir/model/subtype_constraint.rb
expressir-1.0.0-x86-mingw32 lib/expressir/model/subtype_constraint.rb
expressir-1.0.0-x86-linux lib/expressir/model/subtype_constraint.rb
expressir-1.0.0-x64-mingw32 lib/expressir/model/subtype_constraint.rb
expressir-1.0.0-arm64-darwin lib/expressir/model/subtype_constraint.rb
expressir-0.2.27 lib/expressir/model/subtype_constraint.rb
expressir-0.2.27-x86_64-linux lib/expressir/model/subtype_constraint.rb
expressir-0.2.27-x86_64-darwin lib/expressir/model/subtype_constraint.rb
expressir-0.2.27-x86-mingw32 lib/expressir/model/subtype_constraint.rb
expressir-0.2.27-x86-linux lib/expressir/model/subtype_constraint.rb
expressir-0.2.27-x64-mingw32 lib/expressir/model/subtype_constraint.rb
expressir-0.2.27-arm64-darwin lib/expressir/model/subtype_constraint.rb