Sha256: 36c8086b02581cd0e4a50f4489d96a453cb7e8fb2aab03656de49c6568e04dfc

Contents?: true

Size: 230 Bytes

Versions: 15

Compression:

Stored size: 230 Bytes

Contents

module Yao
  module Resources
    module PortAssociationable

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
yao-0.13.4 lib/yao/resources/port_associationable.rb
yao-0.13.3 lib/yao/resources/port_associationable.rb
yao-0.13.2 lib/yao/resources/port_associationable.rb
yao-0.13.1 lib/yao/resources/port_associationable.rb
yao-0.13.0 lib/yao/resources/port_associationable.rb
yao-0.12.0 lib/yao/resources/port_associationable.rb
yao-0.11.3 lib/yao/resources/port_associationable.rb
yao-0.11.2 lib/yao/resources/port_associationable.rb
yao-0.11.1 lib/yao/resources/port_associationable.rb
yao-0.11.0 lib/yao/resources/port_associationable.rb
yao-0.10.1 lib/yao/resources/port_associationable.rb
yao-0.10.0 lib/yao/resources/port_associationable.rb
yao-0.9.1 lib/yao/resources/port_associationable.rb
yao-0.9.0 lib/yao/resources/port_associationable.rb
yao-0.8.0 lib/yao/resources/port_associationable.rb