Class: Dcmgr::Models::Network

Inherits:
BaseNew
  • Object
show all
Defined in:
lib/dcmgr/models/network.rb

Overview

Network definitions in the DC.

Constant Summary

Constants inherited from BaseNew

BaseNew::LOCK_TABLES_KEY

Instance Method Summary collapse

Methods inherited from BaseNew

Proxy, dataset, install_data, install_data_hooks, lock!, unlock!

Instance Method Details

#to_hashObject



27
28
29
# File 'lib/dcmgr/models/network.rb', line 27

def to_hash
  values.dup.merge({:description=>description.to_s})
end

#validateObject



23
24
25
# File 'lib/dcmgr/models/network.rb', line 23

def validate
  super
end