Class: Expressir::Model::Declarations::RemarkItem

Inherits:
Expressir::Model::Declaration show all
Defined in:
lib/expressir/model/declarations/remark_item.rb

Overview

Implicit item with remarks

Instance Attribute Summary collapse

Attributes inherited from ModelElement

#parent

Instance Method Summary collapse

Methods inherited from ModelElement

#children, #children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s

Constructor Details

#initialize(options = {}) ⇒ RemarkItem

Returns a new instance of RemarkItem.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):



12
13
14
15
16
17
# File 'lib/expressir/model/declarations/remark_item.rb', line 12

def initialize(options = {})
  @id = options[:id]
  @remarks = options[:remarks] || []

  super
end

Instance Attribute Details

#idString

Returns:



6
# File 'lib/expressir/model/declarations/remark_item.rb', line 6

model_attr_accessor :id, "String"

#remarksArray<String>

Returns:



7
# File 'lib/expressir/model/declarations/remark_item.rb', line 7

model_attr_accessor :remarks, "Array<String>"