Class: CommonRepositoryModel::MembershipRegistry
- Inherits:
-
Object
- Object
- CommonRepositoryModel::MembershipRegistry
- Defined in:
- lib/common_repository_model/collection.rb
Instance Attribute Summary collapse
-
#has_members ⇒ Object
readonly
Returns the value of attribute has_members.
-
#is_member_of ⇒ Object
readonly
Returns the value of attribute is_member_of.
Instance Method Summary collapse
-
#initialize ⇒ MembershipRegistry
constructor
A new instance of MembershipRegistry.
Constructor Details
#initialize ⇒ MembershipRegistry
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_members ⇒ Object (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_of ⇒ Object (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 |