module Yao::Resources::PortAssociationable
Public Class Methods
included(base)
click to toggle source
# File lib/yao/resources/port_associationable.rb, line 5 def self.included(base) base.friendly_attributes :port_id end
Public Instance Methods
port()
click to toggle source
@return [Yao::Resources::Port]
# File lib/yao/resources/port_associationable.rb, line 10 def port @port ||= Yao::Port.find(port_id) end