Sha256: a4bd27f53635a9ec7ecb1ee9a0f586beaee7c1e18764af23de5d80bfa236fde9

Contents?: true

Size: 269 Bytes

Versions: 8

Compression:

Stored size: 269 Bytes

Contents

module Yao
  module Resources
    module PortAssociationable

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

      # @return [Yao::Resources::Port]
      def port
        @port ||= Yao::Port.find(port_id)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
yao-0.21.0 lib/yao/resources/port_associationable.rb
yao-0.20.0 lib/yao/resources/port_associationable.rb
yao-0.19.0 lib/yao/resources/port_associationable.rb
yao-0.18.0 lib/yao/resources/port_associationable.rb
yao-0.17.0 lib/yao/resources/port_associationable.rb
yao-0.16.0 lib/yao/resources/port_associationable.rb
yao-0.15.0 lib/yao/resources/port_associationable.rb
yao-0.14.0 lib/yao/resources/port_associationable.rb