Class: Deltacloud::Database::Entity
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- Deltacloud::Database::Entity
- Defined in:
- lib/db/entity.rb
Direct Known Subclasses
AddressTemplate, MachineTemplate, VolumeConfiguration, VolumeTemplate
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/db/entity.rb', line 11 def to_hash retval = {} retval.merge!(:name => self.name) if !self.name.nil? retval.merge!(:description => self.description) if !self.description.nil? retval.merge!(:property => JSON::parse(self.ent_properties)) if !self.ent_properties.nil? retval end |