module Yao::Resources::NetworkAssociationable

Public Class Methods

included(base) click to toggle source
# File lib/yao/resources/network_associationable.rb, line 5
def self.included(base)
  base.friendly_attributes :network_id
end

Public Instance Methods

network() click to toggle source

@return [Yao::Resources::Network]

# File lib/yao/resources/network_associationable.rb, line 10
def network
  @tenant ||= Yao::Network.find(network_id)
end