Module: Yao::Resources::PortAssociationable

Included in:
FloatingIP
Defined in:
lib/yao/resources/port_associationable.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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

Instance Method Details

#portObject



9
10
11
# File 'lib/yao/resources/port_associationable.rb', line 9

def port
  @port ||= Yao::Port.find(port_id)
end