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
-
#gateway ⇒ Fabric::Gateway
readonly
Returns the gateway instance.
-
#network_name ⇒ String
readonly
Network name or the channel name or channel id.
Attributes included from Gateway
Instance Attribute Details
#gateway ⇒ Fabric::Gateway (readonly)
Returns the gateway instance
25 26 27 |
# File 'lib/fabric/accessors/network.rb', line 25 def gateway network.gateway end |
#network_name ⇒ String (readonly)
Network name or the channel name or channel id
35 36 37 |
# File 'lib/fabric/accessors/network.rb', line 35 def network_name network.name end |