module Fabric::Accessors::Contract
Add accessor methods to the given class.
Usage: make sure the class has a contract accessor method and then ‘include Fabric::Accessors::Contract
`
Public Class Methods
included(base)
click to toggle source
@!visibility private
# File lib/fabric/accessors/contract.rb, line 13 def self.included(base) base.send :include, Fabric::Accessors::Network end
Public Instance Methods
chaincode_name()
click to toggle source
Returns the chaincode name
@return [String] chaincode name @!parse attr_reader :chaincode_name
# File lib/fabric/accessors/contract.rb, line 46 def chaincode_name contract.chaincode_name end
contract_name()
click to toggle source
Returns the contract name
@return [String] contract name @!parse attr_reader :contract_name
# File lib/fabric/accessors/contract.rb, line 36 def contract_name contract.contract_name end
network()
click to toggle source
Returns the network instance
@return [Fabric::Network] network @!parse attr_reader :network
# File lib/fabric/accessors/contract.rb, line 26 def network contract.network end