Class: HasHelpers::Cards::Importer::Diff

Inherits:
Struct
  • Object
show all
Defined in:
app/importers/has_helpers/cards/importer.rb

Overview

Struct representing the diff between DSL and DB for a single card. Auditing / drift:

  • card_changes: :new, :same, :changed
  • fields_added / fields_removed / fields_changed
  • resources_added / resources_removed

Instance Attribute Summary collapse

Instance Attribute Details

#card_changesObject

Returns the value of attribute card_changes

Returns:

  • (Object)

    the current value of card_changes



61
62
63
# File 'app/importers/has_helpers/cards/importer.rb', line 61

def card_changes
  @card_changes
end

#fields_addedObject

Returns the value of attribute fields_added

Returns:

  • (Object)

    the current value of fields_added



61
62
63
# File 'app/importers/has_helpers/cards/importer.rb', line 61

def fields_added
  @fields_added
end

#fields_changedObject

Returns the value of attribute fields_changed

Returns:

  • (Object)

    the current value of fields_changed



61
62
63
# File 'app/importers/has_helpers/cards/importer.rb', line 61

def fields_changed
  @fields_changed
end

#fields_removedObject

Returns the value of attribute fields_removed

Returns:

  • (Object)

    the current value of fields_removed



61
62
63
# File 'app/importers/has_helpers/cards/importer.rb', line 61

def fields_removed
  @fields_removed
end

#resources_addedObject

Returns the value of attribute resources_added

Returns:

  • (Object)

    the current value of resources_added



61
62
63
# File 'app/importers/has_helpers/cards/importer.rb', line 61

def resources_added
  @resources_added
end

#resources_removedObject

Returns the value of attribute resources_removed

Returns:

  • (Object)

    the current value of resources_removed



61
62
63
# File 'app/importers/has_helpers/cards/importer.rb', line 61

def resources_removed
  @resources_removed
end