Method: Naf::Affinity#to_s

Defined in:
app/models/naf/affinity.rb

#to_sObject


*** Instance Methods *** +++++++++++++++++++++++++



133
134
135
136
137
138
139
140
# File 'app/models/naf/affinity.rb', line 133

def to_s
  components = []
  components << "UNSELECTABLE" unless selectable
  components << "classification: \"#{affinity_classification_name}\""
  components << "name: \"#{affinity_name}\""

  return "::Naf::Affinity<#{components.join(', ')}>"
end