Class: Sirens::ItemsAdded

Inherits:
Object
  • Object
show all
Defined in:
lib/models/list_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(list:, index:, items:) ⇒ ItemsAdded

Returns a new instance of ItemsAdded.



145
146
147
148
149
# File 'lib/models/list_model.rb', line 145

def initialize(list:, index:, items:)
    @list = list
    @index = index
    @items = items
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



151
152
153
# File 'lib/models/list_model.rb', line 151

def index
  @index
end

#itemsObject (readonly)

Returns the value of attribute items.



151
152
153
# File 'lib/models/list_model.rb', line 151

def items
  @items
end

#listObject (readonly)

Returns the value of attribute list.



151
152
153
# File 'lib/models/list_model.rb', line 151

def list
  @list
end