Sha256: 76833f0a1213c02e8dd92adc715119f16195b73580d246c871e4bbad05a09350

Contents?: true

Size: 247 Bytes

Versions: 15

Compression:

Stored size: 247 Bytes

Contents

module Yao
  module Resources
    module NetworkAssociationable

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

      def network
        @tenant ||= Yao::Network.find(network_id)
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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