Method: Fable::Serializer.convert_choice
- Defined in:
- lib/fable/serializer.rb
.convert_choice(choice) ⇒ Object
546 547 548 549 550 551 552 553 554 |
# File 'lib/fable/serializer.rb', line 546 def self.convert_choice(choice) return { "text" => choice.text, "index" => choice.index, "originalChoicePath" => choice.source_path, "originalThreadIndex" => choice.original_thread_index, "targetPath" => choice.path_string_on_choice } end |