Class: Coopy::ChangeType
- Inherits:
-
Object
- Object
- Coopy::ChangeType
- Defined in:
- lib/lib/coopy/change_type.rb
Constant Summary collapse
- ISENUM__ =
true
- CONSTRUCTS__ =
["NO_CHANGE","REMOTE_CHANGE","LOCAL_CHANGE","BOTH_CHANGE","SAME_CHANGE","NOTE_CHANGE"]
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#params ⇒ Object
Returns the value of attribute params.
-
#tag ⇒ Object
Returns the value of attribute tag.
Class Method Summary collapse
- .both_change ⇒ Object
- .local_change ⇒ Object
- .no_change ⇒ Object
- .note_change ⇒ Object
- .remote_change ⇒ Object
- .same_change ⇒ Object
Instance Method Summary collapse
-
#initialize(t, index, p = nil) ⇒ ChangeType
constructor
A new instance of ChangeType.
Constructor Details
#initialize(t, index, p = nil) ⇒ ChangeType
Returns a new instance of ChangeType.
10 |
# File 'lib/lib/coopy/change_type.rb', line 10 def initialize(t,index,p = nil ) @tag = t; @index = index; @params = p; end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
8 9 10 |
# File 'lib/lib/coopy/change_type.rb', line 8 def index @index end |
#params ⇒ Object
Returns the value of attribute params.
9 10 11 |
# File 'lib/lib/coopy/change_type.rb', line 9 def params @params end |
#tag ⇒ Object
Returns the value of attribute tag.
7 8 9 |
# File 'lib/lib/coopy/change_type.rb', line 7 def tag @tag end |
Class Method Details
.both_change ⇒ Object
12 |
# File 'lib/lib/coopy/change_type.rb', line 12 def ChangeType.both_change() ChangeType.new("BOTH_CHANGE",3) end |
.local_change ⇒ Object
13 |
# File 'lib/lib/coopy/change_type.rb', line 13 def ChangeType.local_change() ChangeType.new("LOCAL_CHANGE",2) end |
.no_change ⇒ Object
15 |
# File 'lib/lib/coopy/change_type.rb', line 15 def ChangeType.no_change() ChangeType.new("NO_CHANGE",0) end |
.note_change ⇒ Object
14 |
# File 'lib/lib/coopy/change_type.rb', line 14 def ChangeType.note_change() ChangeType.new("NOTE_CHANGE",5) end |
.remote_change ⇒ Object
16 |
# File 'lib/lib/coopy/change_type.rb', line 16 def ChangeType.remote_change() ChangeType.new("REMOTE_CHANGE",1) end |
.same_change ⇒ Object
17 |
# File 'lib/lib/coopy/change_type.rb', line 17 def ChangeType.same_change() ChangeType.new("SAME_CHANGE",4) end |