Sha256: 0cb161606af62209a96053b344ced23ae03cafbfb5392ff95ed682a7d4c3dc3a

Contents?: true

Size: 704 Bytes

Versions: 14

Compression:

Stored size: 704 Bytes

Contents

module Expressir
  module Model
    class Attribute < ModelElement
      include Identifier

      EXPLICIT = :EXPLICIT
      DERIVED = :DERIVED
      INVERSE = :INVERSE

      attr_accessor :kind
      attr_accessor :supertype_attribute
      attr_accessor :optional
      attr_accessor :type
      attr_accessor :expression

      def initialize(options = {})
        @id = options[:id]
        @remarks = options.fetch(:remarks, [])
        @source = options[:source]

        @kind = options[:kind]
        @supertype_attribute = options[:supertype_attribute]
        @optional = options[:optional]
        @type = options[:type]
        @expression = options[:expression]
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
expressir-0.2.11 lib/expressir/model/attribute.rb
expressir-0.2.11-x86_64-linux lib/expressir/model/attribute.rb
expressir-0.2.11-x86_64-darwin lib/expressir/model/attribute.rb
expressir-0.2.11-x86-mingw32 lib/expressir/model/attribute.rb
expressir-0.2.11-x86-linux lib/expressir/model/attribute.rb
expressir-0.2.11-x64-mingw32 lib/expressir/model/attribute.rb
expressir-0.2.11-arm64-darwin lib/expressir/model/attribute.rb
expressir-0.2.10 lib/expressir/model/attribute.rb
expressir-0.2.10-x86_64-linux lib/expressir/model/attribute.rb
expressir-0.2.10-x86_64-darwin lib/expressir/model/attribute.rb
expressir-0.2.10-x86-mingw32 lib/expressir/model/attribute.rb
expressir-0.2.10-x86-linux lib/expressir/model/attribute.rb
expressir-0.2.10-x64-mingw32 lib/expressir/model/attribute.rb
expressir-0.2.10-arm64-darwin lib/expressir/model/attribute.rb