Class: Ea::Diff::Change
- Inherits:
-
Struct
- Object
- Struct
- Ea::Diff::Change
- Defined in:
- lib/ea/diff/change.rb
Overview
One structural change between two EA databases.
change is one of: :added, :removed, :renamed, :modified.
kind is the collection name (e.g. :packages, :classes).
id is the entity's primary key (string or int).
name is a human-readable label for the entity.
Instance Attribute Summary collapse
-
#change ⇒ Object
Returns the value of attribute change.
-
#details ⇒ Object
Returns the value of attribute details.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#change ⇒ Object
Returns the value of attribute change
11 12 13 |
# File 'lib/ea/diff/change.rb', line 11 def change @change end |
#details ⇒ Object
Returns the value of attribute details
11 12 13 |
# File 'lib/ea/diff/change.rb', line 11 def details @details end |
#id ⇒ Object
Returns the value of attribute id
11 12 13 |
# File 'lib/ea/diff/change.rb', line 11 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind
11 12 13 |
# File 'lib/ea/diff/change.rb', line 11 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name
11 12 13 |
# File 'lib/ea/diff/change.rb', line 11 def name @name end |
Instance Method Details
#added? ⇒ Boolean
13 14 15 |
# File 'lib/ea/diff/change.rb', line 13 def added? change == :added end |
#modified? ⇒ Boolean
25 26 27 |
# File 'lib/ea/diff/change.rb', line 25 def modified? change == :modified end |
#removed? ⇒ Boolean
17 18 19 |
# File 'lib/ea/diff/change.rb', line 17 def removed? change == :removed end |
#renamed? ⇒ Boolean
21 22 23 |
# File 'lib/ea/diff/change.rb', line 21 def renamed? change == :renamed end |