Class: Zusaar::Identity

Inherits:
Base
  • Object
show all
Defined in:
lib/zusaar/identity.rb

Direct Known Subclasses

Event, User

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

attr_reader, #initialize

Constructor Details

This class inherits a constructor from Zusaar::Base

Instance Attribute Details

#idObject (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