Class: TwistlockControl::Entity
- Inherits:
-
Object
- Object
- TwistlockControl::Entity
- Defined in:
- lib/twistlock_control/entity.rb
Overview
An entity is basically a struct with typed fields.
Direct Known Subclasses
TwistlockControl::Entities::ContainerDescription, TwistlockControl::Entities::ProvisioningConfiguration, TwistlockControl::Entities::RelatedServiceDescription, TwistlockControl::Entities::ServiceLink, PersistedEntity
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
8 9 10 11 |
# File 'lib/twistlock_control/entity.rb', line 8 def ==(other) return false unless other.respond_to? :attributes attributes == other.attributes end |
#serialize ⇒ Object
13 14 15 |
# File 'lib/twistlock_control/entity.rb', line 13 def serialize attributes.dup end |