Module: Yao::Resources::NetworkAssociationable

Included in:
Port, Subnet
Defined in:
lib/yao/resources/network_associationable.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/yao/resources/network_associationable.rb', line 5

def self.included(base)
  base.friendly_attributes :network_id
end

Instance Method Details

#networkYao::Resources::Network



10
11
12
# File 'lib/yao/resources/network_associationable.rb', line 10

def network
  @tenant ||= Yao::Network.find(network_id)
end