Sha256: 8ac5969d9ed201a775e16c4bf60e65f34fb35af2f8f20f248cffe8d24fc10a3a

Contents?: true

Size: 719 Bytes

Versions: 63

Compression:

Stored size: 719 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]

        super
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
expressir-0.2.21 lib/expressir/model/attribute.rb
expressir-0.2.21-x86_64-linux lib/expressir/model/attribute.rb
expressir-0.2.21-x86_64-darwin lib/expressir/model/attribute.rb
expressir-0.2.21-x86-mingw32 lib/expressir/model/attribute.rb
expressir-0.2.21-x86-linux lib/expressir/model/attribute.rb
expressir-0.2.21-x64-mingw32 lib/expressir/model/attribute.rb
expressir-0.2.21-arm64-darwin lib/expressir/model/attribute.rb
expressir-0.2.19 lib/expressir/model/attribute.rb
expressir-0.2.19-x86_64-linux lib/expressir/model/attribute.rb
expressir-0.2.19-x86_64-darwin lib/expressir/model/attribute.rb
expressir-0.2.19-x86-mingw32 lib/expressir/model/attribute.rb
expressir-0.2.19-x86-linux lib/expressir/model/attribute.rb
expressir-0.2.19-x64-mingw32 lib/expressir/model/attribute.rb
expressir-0.2.19-arm64-darwin lib/expressir/model/attribute.rb
expressir-0.2.18 lib/expressir/model/attribute.rb
expressir-0.2.18-x86_64-linux lib/expressir/model/attribute.rb
expressir-0.2.18-x86_64-darwin lib/expressir/model/attribute.rb
expressir-0.2.18-x86-mingw32 lib/expressir/model/attribute.rb
expressir-0.2.18-x86-linux lib/expressir/model/attribute.rb
expressir-0.2.18-x64-mingw32 lib/expressir/model/attribute.rb