Class: CommonRepositoryModel::MembershipRegistry

Inherits:
Object
  • Object
show all
Defined in:
lib/common_repository_model/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMembershipRegistry

Returns a new instance of MembershipRegistry.



23
24
25
26
# File 'lib/common_repository_model/collection.rb', line 23

def initialize
  @has_members = Set.new
  @is_member_of = Set.new
end

Instance Attribute Details

#has_membersObject (readonly)

Returns the value of attribute has_members.



27
28
29
# File 'lib/common_repository_model/collection.rb', line 27

def has_members
  @has_members
end

#is_member_ofObject (readonly)

Returns the value of attribute is_member_of.



27
28
29
# File 'lib/common_repository_model/collection.rb', line 27

def is_member_of
  @is_member_of
end