Class: Xooa::Response::WriteSet
- Inherits:
-
Object
- Object
- Xooa::Response::WriteSet
- Defined in:
- lib/xooa/response/TransactionResponse.rb
Instance Attribute Summary collapse
-
#chaincode ⇒ Object
Returns the value of attribute chaincode.
-
#sets ⇒ Object
Returns the value of attribute sets.
Instance Method Summary collapse
-
#display ⇒ Object
display the WriteSet.
-
#initialize(chaincode, sets) ⇒ WriteSet
constructor
Initialize WriteSet.
Constructor Details
#initialize(chaincode, sets) ⇒ WriteSet
Initialize WriteSet
165 166 167 168 |
# File 'lib/xooa/response/TransactionResponse.rb', line 165 def initialize(chaincode, sets) @chaincode = chaincode @sets = sets end |
Instance Attribute Details
#chaincode ⇒ Object
Returns the value of attribute chaincode.
160 161 162 |
# File 'lib/xooa/response/TransactionResponse.rb', line 160 def chaincode @chaincode end |
#sets ⇒ Object
Returns the value of attribute sets.
162 163 164 |
# File 'lib/xooa/response/TransactionResponse.rb', line 162 def sets @sets end |
Instance Method Details
#display ⇒ Object
display the WriteSet
171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/xooa/response/TransactionResponse.rb', line 171 def display puts("\t Chaincode - #{@chaincode}") puts("\t Sets -") if @sets.respond_to?("each") @sets.each do |set| set.display end else @sets.display end end |