Class: Catalog::UpdateCatalog::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog: nil, catalog_updated: nil, messages: []) ⇒ Result

Returns a new instance of Result.



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

def initialize(catalog: nil, catalog_updated: nil, messages: []) = super

Instance Attribute Details

#catalogObject (readonly)

Returns the value of attribute catalog

Returns:

  • (Object)

    the current value of catalog



3
4
5
# File 'app/services/catalog/update_catalog.rb', line 3

def catalog
  @catalog
end

#catalog_updatedObject (readonly)

Returns the value of attribute catalog_updated

Returns:

  • (Object)

    the current value of catalog_updated



3
4
5
# File 'app/services/catalog/update_catalog.rb', line 3

def catalog_updated
  @catalog_updated
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



3
4
5
# File 'app/services/catalog/update_catalog.rb', line 3

def messages
  @messages
end

Instance Method Details

#catalog_updated?Boolean

Returns:

  • (Boolean)


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

def catalog_updated? = catalog_updated