Class: MendixBridge::SnapshotDiff::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/mendix_bridge/snapshot_diff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addedObject (readonly)

Returns the value of attribute added

Returns:

  • (Object)

    the current value of added



5
6
7
# File 'lib/mendix_bridge/snapshot_diff.rb', line 5

def added
  @added
end

#modifiedObject (readonly)

Returns the value of attribute modified

Returns:

  • (Object)

    the current value of modified



5
6
7
# File 'lib/mendix_bridge/snapshot_diff.rb', line 5

def modified
  @modified
end

#removedObject (readonly)

Returns the value of attribute removed

Returns:

  • (Object)

    the current value of removed



5
6
7
# File 'lib/mendix_bridge/snapshot_diff.rb', line 5

def removed
  @removed
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/mendix_bridge/snapshot_diff.rb', line 6

def empty?
  added.empty? && modified.empty? && removed.empty?
end

#to_hObject



10
11
12
# File 'lib/mendix_bridge/snapshot_diff.rb', line 10

def to_h
  { added:, modified:, removed: }
end