Sha256: 9d7e7bc5905dc633dc11bdeb940ffd7255894a0bb514363e48c3a9c06dc471ea

Contents?: true

Size: 703 Bytes

Versions: 7

Compression:

Stored size: 703 Bytes

Contents

# frozen_string_literal: true

module Expressir
  module Liquid
    module Declarations
      class InterfacedItemDrop < ::Expressir::Liquid::ModelElementDrop
        def initialize(model)
          @model = model
          super
        end

        def id
          @model.id
        end

        def remarks
          @model.remarks || []
        end

        def remark_items
          return [] unless @model.remark_items

          @model.remark_items.map do |item|
            ::Expressir::Liquid::Declarations::RemarkItemDrop.new(item)
          end
        end

        def base_item
          ::Expressir::Liquid::ModelElementDrop.new(@model.base_item)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
expressir-2.1.6 lib/expressir/liquid/declarations/interfaced_item_drop.rb
expressir-2.1.5 lib/expressir/liquid/declarations/interfaced_item_drop.rb
expressir-2.1.4 lib/expressir/liquid/declarations/interfaced_item_drop.rb
expressir-2.1.3 lib/expressir/liquid/declarations/interfaced_item_drop.rb
expressir-2.1.2 lib/expressir/liquid/declarations/interfaced_item_drop.rb
expressir-2.1.1 lib/expressir/liquid/declarations/interfaced_item_drop.rb
expressir-2.1.0 lib/expressir/liquid/declarations/interfaced_item_drop.rb