Module: Fabric::Accessors::Network

Includes:
Gateway
Included in:
Contract, Contract, Transaction
Defined in:
lib/fabric/accessors/network.rb

Overview

Add accessor methods to the given class.

Usage: make sure the class has a network accessor method and then include Fabric::Accessors::Network

Instance Attribute Summary collapse

Attributes included from Gateway

#client, #signer

Instance Attribute Details

#gatewayFabric::Gateway (readonly)

Returns the gateway instance

Returns:



25
26
27
# File 'lib/fabric/accessors/network.rb', line 25

def gateway
  network.gateway
end

#network_nameString (readonly)

Network name or the channel name or channel id

Returns:

  • (String)

    network name



35
36
37
# File 'lib/fabric/accessors/network.rb', line 35

def network_name
  network.name
end