Class: CloudFoundry::Perm::V1::Models::BaseModel
- Inherits:
-
Object
- Object
- CloudFoundry::Perm::V1::Models::BaseModel
- Defined in:
- lib/perm/v1/models/base.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
Based on stackoverflow.com/a/25606643
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 |