Class: Sirens::ItemsAdded
- Inherits:
-
Object
- Object
- Sirens::ItemsAdded
- Defined in:
- lib/models/list_model.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#list ⇒ Object
readonly
Returns the value of attribute list.
Instance Method Summary collapse
-
#initialize(list:, index:, items:) ⇒ ItemsAdded
constructor
A new instance of ItemsAdded.
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
#index ⇒ Object (readonly)
Returns the value of attribute index.
151 152 153 |
# File 'lib/models/list_model.rb', line 151 def index @index end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
151 152 153 |
# File 'lib/models/list_model.rb', line 151 def items @items end |
#list ⇒ Object (readonly)
Returns the value of attribute list.
151 152 153 |
# File 'lib/models/list_model.rb', line 151 def list @list end |