Class: Catalog::UpdateCatalogItem::RESULT

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_item: nil, catalog_item_updated: nil, changes: nil, messages: []) ⇒ RESULT

Returns a new instance of RESULT.



3
# File 'app/services/catalog/update_catalog_item.rb', line 3

def initialize(catalog_item: nil, catalog_item_updated: nil, changes: nil, messages: []) = super

Instance Attribute Details

#catalog_itemObject (readonly)

Returns the value of attribute catalog_item

Returns:

  • (Object)

    the current value of catalog_item



2
3
4
# File 'app/services/catalog/update_catalog_item.rb', line 2

def catalog_item
  @catalog_item
end

#catalog_item_updatedObject (readonly)

Returns the value of attribute catalog_item_updated

Returns:

  • (Object)

    the current value of catalog_item_updated



2
3
4
# File 'app/services/catalog/update_catalog_item.rb', line 2

def catalog_item_updated
  @catalog_item_updated
end

#changesObject (readonly)

Returns the value of attribute changes

Returns:

  • (Object)

    the current value of changes



2
3
4
# File 'app/services/catalog/update_catalog_item.rb', line 2

def changes
  @changes
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



2
3
4
# File 'app/services/catalog/update_catalog_item.rb', line 2

def messages
  @messages
end

Instance Method Details

#catalog_item_updated?Boolean

Returns:

  • (Boolean)


4
# File 'app/services/catalog/update_catalog_item.rb', line 4

def catalog_item_updated? = catalog_item_updated