Class: CloudFoundry::Perm::V1::Models::BaseModel

Inherits:
Object
  • Object
show all
Defined in:
lib/perm/v1/models/base.rb

Direct Known Subclasses

Permission, Role

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



9
10
11
12
13
# File 'lib/perm/v1/models/base.rb', line 9

def ==(other)
  self.class == other.class && instance_variables.all? do |v|
    instance_variable_get(v) == other.instance_variable_get(v)
  end
end