Class: Catalog::AssignCatalogToCustomer::Result

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

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_assigned: nil, missing_items_in_target_catalog: nil, messages: []) ⇒ Result

Returns a new instance of Result.



11
# File 'app/services/catalog/assign_catalog_to_customer.rb', line 11

def initialize(catalog_assigned: nil, missing_items_in_target_catalog: nil, messages: []) = super

Instance Attribute Details

#catalog_assignedObject (readonly)

Returns the value of attribute catalog_assigned

Returns:

  • (Object)

    the current value of catalog_assigned



10
11
12
# File 'app/services/catalog/assign_catalog_to_customer.rb', line 10

def catalog_assigned
  @catalog_assigned
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



10
11
12
# File 'app/services/catalog/assign_catalog_to_customer.rb', line 10

def messages
  @messages
end

#missing_items_in_target_catalogObject (readonly)

Returns the value of attribute missing_items_in_target_catalog

Returns:

  • (Object)

    the current value of missing_items_in_target_catalog



10
11
12
# File 'app/services/catalog/assign_catalog_to_customer.rb', line 10

def missing_items_in_target_catalog
  @missing_items_in_target_catalog
end

Instance Method Details

#catalog_assigned?Boolean

Returns:

  • (Boolean)


12
# File 'app/services/catalog/assign_catalog_to_customer.rb', line 12

def catalog_assigned? = catalog_assigned