Class: Collector
- Inherits:
-
Role::ProjectRole
- Object
- ActiveRecord::Base
- ApplicationRecord
- Role
- Role::ProjectRole
- Collector
- Defined in:
- app/models/collector.rb
Instance Attribute Summary
Attributes inherited from Role
#organization_id, #person_id, #position, #project_id, #role_object_id, #role_object_type, #type
Attributes included from Housekeeping::Users
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Role::ProjectRole
Methods included from Housekeeping
#has_polymorphic_relationship?
Methods inherited from Role
#agent_is_legal, #agent_present, #agent_type, #is_last_role?, #only_one_agent, #organization_allowed?, #update_cached
Methods included from Shared::IsData
#errors_excepting, #full_error_messages_excepting, #identical, #is_community?, #is_destroyable?, #is_editable?, #is_in_use?, #is_in_users_projects?, #metamorphosize, #similar
Methods included from Housekeeping::Timestamps
#data_breakdown_for_chartkick_recent
Methods included from Housekeeping::Users
#set_created_by_id, #set_updated_by_id
Methods inherited from ApplicationRecord
Class Method Details
.human_name ⇒ Object
3 4 5 |
# File 'app/models/collector.rb', line 3 def self.human_name 'Collector' end |
Instance Method Details
#year_active_year ⇒ Object
7 8 9 10 11 |
# File 'app/models/collector.rb', line 7 def year_active_year [ role_object.end_date_year, role_object.start_date_year ].compact.first end |