Class: Item::Materials::BaseCompatibleFinder::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/item/materials/base_compatible_finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items: nil, catalog_items: nil, messages: [], item: nil) ⇒ Result

Returns a new instance of Result.



5
# File 'app/services/item/materials/base_compatible_finder.rb', line 5

def initialize(items: nil, catalog_items: nil, messages: [], item: nil) = super

Instance Attribute Details

#catalog_itemsObject (readonly)

Returns the value of attribute catalog_items

Returns:

  • (Object)

    the current value of catalog_items



4
5
6
# File 'app/services/item/materials/base_compatible_finder.rb', line 4

def catalog_items
  @catalog_items
end

#itemObject (readonly)

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



4
5
6
# File 'app/services/item/materials/base_compatible_finder.rb', line 4

def item
  @item
end

#itemsObject (readonly)

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



4
5
6
# File 'app/services/item/materials/base_compatible_finder.rb', line 4

def items
  @items
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



4
5
6
# File 'app/services/item/materials/base_compatible_finder.rb', line 4

def messages
  @messages
end