Class: Xooa::Response::ReadSet
- Inherits:
-
Object
- Object
- Xooa::Response::ReadSet
- 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 read set details.
-
#initialize(chaincode, sets) ⇒ ReadSet
constructor
Initialize ReadSet.
Constructor Details
#initialize(chaincode, sets) ⇒ ReadSet
Initialize ReadSet
93 94 95 96 |
# File 'lib/xooa/response/TransactionResponse.rb', line 93 def initialize(chaincode, sets) @chaincode = chaincode @sets = sets end |
Instance Attribute Details
#chaincode ⇒ Object
Returns the value of attribute chaincode.
88 89 90 |
# File 'lib/xooa/response/TransactionResponse.rb', line 88 def chaincode @chaincode end |
#sets ⇒ Object
Returns the value of attribute sets.
90 91 92 |
# File 'lib/xooa/response/TransactionResponse.rb', line 90 def sets @sets end |
Instance Method Details
#display ⇒ Object
display read set details
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/xooa/response/TransactionResponse.rb', line 99 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 |