Class: DpStmMap::ClientTransactionMessage

Inherits:
JsonMessage
  • Object
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_id = nil, transitions = nil, new_content = nil) ⇒ ClientTransactionMessage

Returns a new instance of ClientTransactionMessage.



100
101
102
103
104
# File 'lib/dp_stm_map/Message.rb', line 100

def initialize transaction_id=nil, transitions=nil, new_content=nil
  @transaction_id=transaction_id
  @transitions=transitions
  @new_content=new_content
end

Instance Attribute Details

#new_contentObject

Returns the value of attribute new_content.



108
109
110
# File 'lib/dp_stm_map/Message.rb', line 108

def new_content
  @new_content
end

#transaction_idObject

Returns the value of attribute transaction_id.



106
107
108
# File 'lib/dp_stm_map/Message.rb', line 106

def transaction_id
  @transaction_id
end

#transitionsObject

Returns the value of attribute transitions.



107
108
109
# File 'lib/dp_stm_map/Message.rb', line 107

def transitions
  @transitions
end