Class: Item::PrepareNewKitComponent::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/item/prepare_new_kit_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors: [], notices: [], catalog_items_created: []) ⇒ Result

Returns a new instance of Result.



5
# File 'app/services/item/prepare_new_kit_component.rb', line 5

def initialize(errors: [], notices: [], catalog_items_created: []) = super

Instance Attribute Details

#catalog_items_createdObject (readonly)

Returns the value of attribute catalog_items_created

Returns:

  • (Object)

    the current value of catalog_items_created



4
5
6
# File 'app/services/item/prepare_new_kit_component.rb', line 4

def catalog_items_created
  @catalog_items_created
end

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



4
5
6
# File 'app/services/item/prepare_new_kit_component.rb', line 4

def errors
  @errors
end

#noticesObject (readonly)

Returns the value of attribute notices

Returns:

  • (Object)

    the current value of notices



4
5
6
# File 'app/services/item/prepare_new_kit_component.rb', line 4

def notices
  @notices
end