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.
22 23 24 25 |
# File 'lib/common_repository_model/collection.rb', line 22 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.
26 27 28 |
# File 'lib/common_repository_model/collection.rb', line 26 def has_members @has_members end |
#is_member_of ⇒ Object (readonly)
Returns the value of attribute is_member_of.
26 27 28 |
# File 'lib/common_repository_model/collection.rb', line 26 def is_member_of @is_member_of end |