class Pupa::Post
A position that exists independent of the person holding it.
Attributes
area_id[RW]
end_date[RW]
label[RW]
organization_id[RW]
other_label[RW]
role[RW]
start_date[RW]
Public Instance Methods
fingerprint()
click to toggle source
A post should have a unique label within an organization, through it may share a label with a historical post.
Calls superclass method
Pupa::Model#fingerprint
# File lib/pupa/models/post.rb, line 27 def fingerprint super.slice(:label, :organization_id, :end_date) end
to_s()
click to toggle source
Returns the post’s label or role and organization ID.
@return [String] the post’s label or role and organization ID
# File lib/pupa/models/post.rb, line 21 def to_s "#{label || role} in #{organization_id}" end