Class: SubjectRelationship

Inherits:
ActiveRecordShared show all
Defined in:
app/models/subject_relationship.rb

Instance Method Summary collapse

Instance Method Details

#is_other?Boolean

Returns boolean of comparison true only if key == ‘other’

Returns:

  • (Boolean)


17
18
19
# File 'app/models/subject_relationship.rb', line 17

def is_other?
	key == 'other'
end

#to_sObject

Returns description



11
12
13
# File 'app/models/subject_relationship.rb', line 11

def to_s
	description
end