Module: Fabric::Accessors::Gateway

Included in:
Contract, Network, Network
Defined in:
lib/fabric/accessors/gateway.rb

Overview

Add accessor methods to the given class.

Usage: make sure the class has a gateway accessor method and then include Fabric::Accessors::Gateway

Instance Attribute Summary collapse

Instance Attribute Details

#clientFabric::Client (readonly)

Returns the client instance

Returns:



18
19
20
# File 'lib/fabric/accessors/gateway.rb', line 18

def client
  gateway.client
end

#signerFabric::Identity (readonly)

Returns the signer identity instance

Returns:



28
29
30
# File 'lib/fabric/accessors/gateway.rb', line 28

def signer
  gateway.signer
end