Class: Expressir::Liquid::Declarations::InterfacedItemDrop

Inherits:
ModelElementDrop
  • Object
show all
Defined in:
lib/expressir/liquid/declarations/interfaced_item_drop.rb

Instance Method Summary collapse

Methods inherited from ModelElementDrop

#_class, #file, #source

Constructor Details

#initialize(model) ⇒ InterfacedItemDrop

Returns a new instance of InterfacedItemDrop.



7
8
9
10
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 7

def initialize(model)
  @model = model
  super
end

Instance Method Details

#base_itemObject



28
29
30
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 28

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

#idObject



12
13
14
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 12

def id
  @model.id
end

#remark_itemsObject



20
21
22
23
24
25
26
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 20

def remark_items
  return [] unless @model.remark_items

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

#remarksObject



16
17
18
# File 'lib/expressir/liquid/declarations/interfaced_item_drop.rb', line 16

def remarks
  @model.remarks || []
end