Module: Fabric::Accessors::Contract
- Included in:
- ChaincodeEventsRequest, Proposal, ProposedTransaction
- Defined in:
- lib/fabric/accessors/contract.rb
Overview
Add accessor methods to the given class.
Usage: make sure the class has a contract accessor method
and then include Fabric::Accessors::Contract
Instance Attribute Summary collapse
-
#chaincode_name ⇒ String
readonly
Returns the chaincode name.
-
#contract_name ⇒ String
readonly
Returns the contract name.
-
#network ⇒ Fabric::Network
readonly
Returns the network instance.
Attributes included from Gateway
Attributes included from Network
Instance Attribute Details
#chaincode_name ⇒ String (readonly)
Returns the chaincode name
46 47 48 |
# File 'lib/fabric/accessors/contract.rb', line 46 def chaincode_name contract.chaincode_name end |
#contract_name ⇒ String (readonly)
Returns the contract name
36 37 38 |
# File 'lib/fabric/accessors/contract.rb', line 36 def contract_name contract.contract_name end |
#network ⇒ Fabric::Network (readonly)
Returns the network instance
26 27 28 |
# File 'lib/fabric/accessors/contract.rb', line 26 def network contract.network end |