Class: Edi::Wayfair::CatalogReadV2Persister::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/edi/wayfair/catalog_read_v2_persister.rb

Overview

Service object: persistence result (changed flags whether anything moved).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(changed: nil) ⇒ Result

Parameters:

  • changed (Boolean, nil) (defaults to: nil)

    whether any attribute changed and was saved



18
# File 'app/services/edi/wayfair/catalog_read_v2_persister.rb', line 18

def initialize(changed: nil) = super

Instance Attribute Details

#changedObject (readonly)

Returns the value of attribute changed

Returns:

  • (Object)

    the current value of changed



15
16
17
# File 'app/services/edi/wayfair/catalog_read_v2_persister.rb', line 15

def changed
  @changed
end