Sha256: 56d1f58c7fc00934d2d7fee8e5f781e09dd7fd0694f30880f5ced366ea8a6988

Contents?: true

Size: 540 Bytes

Versions: 14

Compression:

Stored size: 540 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 children
        [
          *remark_items
        ]
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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