Sha256: ae916ea6e3164536de5934710d1d09af2adf13bd9f4506cf3808346b2ada2717

Contents?: true

Size: 289 Bytes

Versions: 8

Compression:

Stored size: 289 Bytes

Contents

module Yao
  module Resources
    module NetworkAssociationable

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

      # @return [Yao::Resources::Network]
      def network
        @tenant ||= Yao::Network.find(network_id)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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