Class: Catalog::AssignCatalogToCustomer::Result

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

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.



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

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



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

def catalog_assigned
  @catalog_assigned
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



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

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



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

def missing_items_in_target_catalog
  @missing_items_in_target_catalog
end

Instance Method Details

#catalog_assigned?Boolean

Returns:

  • (Boolean)


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

def catalog_assigned? = catalog_assigned