Class: Zusaar::Identity
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Zusaar::Base
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/zusaar/identity.rb', line 5 def id @id end |
Instance Method Details
#==(other) ⇒ Object
7 8 9 |
# File 'lib/zusaar/identity.rb', line 7 def ==(other) other.is_a?(self.class) && (self.id == other.id) end |