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

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

Overview

Service object: result.

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.



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

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



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

def catalog_items
  @catalog_items
end

#itemObject (readonly)

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



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

def item
  @item
end

#itemsObject (readonly)

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



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

def items
  @items
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



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

def messages
  @messages
end