Class: TwistlockControl::Entity

Inherits:
Object
  • Object
show all
Defined in:
lib/twistlock_control/entity.rb

Overview

An entity is basically a struct with typed fields.

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

#serializeObject



13
14
15
# File 'lib/twistlock_control/entity.rb', line 13

def serialize
	attributes.dup
end