Class: DpStmMap::TransactionMessage

Inherits:
JsonMessage show all
Defined in:
lib/dp_stm_map/Message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from JsonMessage

class_from_string, deserialize, #from_hash!, #serialize

Constructor Details

#initialize(transaction_sequence = nil, transitions = nil, new_content = nil, delete_content = nil) ⇒ TransactionMessage

Returns a new instance of TransactionMessage.



112
113
114
115
116
117
# File 'lib/dp_stm_map/Message.rb', line 112

def initialize transaction_sequence=nil, transitions=nil, new_content=nil, delete_content=nil
  @transaction_sequence=transaction_sequence
  @transitions=transitions
  @new_content=new_content
  @delete_content=delete_content
end

Instance Attribute Details

#delete_contentObject

Returns the value of attribute delete_content.



122
123
124
# File 'lib/dp_stm_map/Message.rb', line 122

def delete_content
  @delete_content
end

#new_contentObject

Returns the value of attribute new_content.



121
122
123
# File 'lib/dp_stm_map/Message.rb', line 121

def new_content
  @new_content
end

#transaction_sequenceObject

Returns the value of attribute transaction_sequence.



119
120
121
# File 'lib/dp_stm_map/Message.rb', line 119

def transaction_sequence
  @transaction_sequence
end

#transitionsObject

Returns the value of attribute transitions.



120
121
122
# File 'lib/dp_stm_map/Message.rb', line 120

def transitions
  @transitions
end