Module: EffectiveMembershipsStatus
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/effective_memberships_status.rb
Overview
EffectiveMembershipsStatus
Mark your status model with effective_memberships_status to get all the includes
Defined Under Namespace
Modules: Base, ClassMethods
Instance Method Summary
collapse
Instance Method Details
#individual? ⇒ Boolean
67
68
69
|
# File 'app/models/concerns/effective_memberships_status.rb', line 67
def individual?
status_type == 'Individual'
end
|
#membership_directory_title ⇒ Object
63
64
65
|
# File 'app/models/concerns/effective_memberships_status.rb', line 63
def membership_directory_title
to_s
end
|
#not_in_good_standing? ⇒ Boolean
75
76
77
|
# File 'app/models/concerns/effective_memberships_status.rb', line 75
def not_in_good_standing?
title == 'Not In Good Standing'
end
|
#organization? ⇒ Boolean
71
72
73
|
# File 'app/models/concerns/effective_memberships_status.rb', line 71
def organization?
status_type == 'Organization'
end
|
#reinstatement_expires_in ⇒ Object
79
80
81
|
# File 'app/models/concerns/effective_memberships_status.rb', line 79
def reinstatement_expires_in
nil end
|
#to_s ⇒ Object
59
60
61
|
# File 'app/models/concerns/effective_memberships_status.rb', line 59
def to_s
title.presence || 'New Membership Status'
end
|