lib/prontoforms/form_submission.rb in prontoforms-0.3.0 vs lib/prontoforms/form_submission.rb in prontoforms-0.3.1

- old
+ new

@@ -23,13 +23,17 @@ property :server_receive_date do str = data.fetch('serverReceiveDate') str.nil? ? nil : DateTime.strptime(str) end + # Retrieve the pages containing the form questions and answers + # @return [Hash] Hash of questions and answers for the FormSubmission def pages document.fetch('pages') end + # Retrieve the dispatching User, if the form was dispatched + # @return [User] The user that dispatched the form, or nil def dispatcher client.user(document.dig('dispatcher', 'identifier')) end private