Class: Catalog::AssignCatalogItem::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/catalog/assign_catalog_item.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(item: nil, catalog_item: nil, catalog_item_created: nil, messages: []) ⇒ Result

Returns a new instance of Result.



5
# File 'app/services/catalog/assign_catalog_item.rb', line 5

def initialize(item: nil, catalog_item: nil, catalog_item_created: nil, messages: []) = super

Instance Attribute Details

#catalog_itemObject (readonly)

Returns the value of attribute catalog_item

Returns:

  • (Object)

    the current value of catalog_item



4
5
6
# File 'app/services/catalog/assign_catalog_item.rb', line 4

def catalog_item
  @catalog_item
end

#catalog_item_createdObject (readonly)

Returns the value of attribute catalog_item_created

Returns:

  • (Object)

    the current value of catalog_item_created



4
5
6
# File 'app/services/catalog/assign_catalog_item.rb', line 4

def catalog_item_created
  @catalog_item_created
end

#itemObject (readonly)

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



4
5
6
# File 'app/services/catalog/assign_catalog_item.rb', line 4

def item
  @item
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



4
5
6
# File 'app/services/catalog/assign_catalog_item.rb', line 4

def messages
  @messages
end

Instance Method Details

#catalog_item_created?Boolean

Returns:

  • (Boolean)


6
# File 'app/services/catalog/assign_catalog_item.rb', line 6

def catalog_item_created? = catalog_item_created