Sha256: b4f522fab782eaa072512557eb76793674d7395f3fbfe20e85230a1ce7044208

Contents?: true

Size: 589 Bytes

Versions: 7

Compression:

Stored size: 589 Bytes

Contents

module Expressir
  module Model
    class InterfacedItem < ModelElement
      model_attr_accessor :id
      model_attr_accessor :remarks
      model_attr_accessor :remark_items

      model_attr_accessor :base_item

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

        @base_item = options[:base_item]

        super
      end

      def path
        base_item.path
      end

      def children
        [
          *remark_items
        ]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
expressir-0.2.24 lib/expressir/model/interfaced_item.rb
expressir-0.2.24-x86_64-linux lib/expressir/model/interfaced_item.rb
expressir-0.2.24-x86_64-darwin lib/expressir/model/interfaced_item.rb
expressir-0.2.24-x86-mingw32 lib/expressir/model/interfaced_item.rb
expressir-0.2.24-x86-linux lib/expressir/model/interfaced_item.rb
expressir-0.2.24-x64-mingw32 lib/expressir/model/interfaced_item.rb
expressir-0.2.24-arm64-darwin lib/expressir/model/interfaced_item.rb