module Fabric::Accessors::Network

Add accessor methods to the given class.

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

Public Class Methods

included(base) click to toggle source

@!visibility private

# File lib/fabric/accessors/network.rb, line 13
def self.included(base)
  base.send :include, Fabric::Accessors::Gateway
end

Public Instance Methods

gateway() click to toggle source

Returns the gateway instance

@return [Fabric::Gateway] gateway @!parse attr_reader :gateway

# File lib/fabric/accessors/network.rb, line 25
def gateway
  network.gateway
end
network_name() click to toggle source

Network name or the channel name or channel id

@return [String] network name @!parse attr_reader :network_name

# File lib/fabric/accessors/network.rb, line 35
def network_name
  network.name
end