Class: LightSide::Corpus

Inherits:
Object
  • Object
show all
Includes:
Resources
Defined in:
lib/lightside/models/corpus.rb

Instance Method Summary collapse

Methods included from Resources

#attributes, #delete, #id, included, #initialize, #reload, #save, #set_attributes_from_hash, #to_s, #update, #writable_attributes

Instance Method Details

#training_answer_idsObject



11
12
13
# File 'lib/lightside/models/corpus.rb', line 11

def training_answer_ids
  training_answers.map { |url| url.split("/").last }
end