Class: Google::Apis::FormsV1::FormResponse
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::FormResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/forms_v1/classes.rb,
lib/google/apis/forms_v1/representations.rb,
lib/google/apis/forms_v1/representations.rb
Overview
A form response.
Instance Attribute Summary collapse
-
#answers ⇒ Hash<String,Google::Apis::FormsV1::Answer>
Output only.
-
#create_time ⇒ String
Output only.
-
#form_id ⇒ String
Output only.
-
#last_submitted_time ⇒ String
Output only.
-
#respondent_email ⇒ String
Output only.
-
#response_id ⇒ String
Output only.
-
#total_score ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FormResponse
constructor
A new instance of FormResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FormResponse
Returns a new instance of FormResponse.
629 630 631 |
# File 'lib/google/apis/forms_v1/classes.rb', line 629 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answers ⇒ Hash<String,Google::Apis::FormsV1::Answer>
Output only. The actual answers to the questions, keyed by question_id.
Corresponds to the JSON property answers
593 594 595 |
# File 'lib/google/apis/forms_v1/classes.rb', line 593 def answers @answers end |
#create_time ⇒ String
Output only. Timestamp for the first time the response was submitted.
Corresponds to the JSON property createTime
598 599 600 |
# File 'lib/google/apis/forms_v1/classes.rb', line 598 def create_time @create_time end |
#form_id ⇒ String
Output only. The form ID.
Corresponds to the JSON property formId
603 604 605 |
# File 'lib/google/apis/forms_v1/classes.rb', line 603 def form_id @form_id end |
#last_submitted_time ⇒ String
Output only. Timestamp for the most recent time the response was submitted.
Does not track changes to grades.
Corresponds to the JSON property lastSubmittedTime
609 610 611 |
# File 'lib/google/apis/forms_v1/classes.rb', line 609 def last_submitted_time @last_submitted_time end |
#respondent_email ⇒ String
Output only. The email address (if collected) for the respondent.
Corresponds to the JSON property respondentEmail
614 615 616 |
# File 'lib/google/apis/forms_v1/classes.rb', line 614 def respondent_email @respondent_email end |
#response_id ⇒ String
Output only. The response ID.
Corresponds to the JSON property responseId
619 620 621 |
# File 'lib/google/apis/forms_v1/classes.rb', line 619 def response_id @response_id end |
#total_score ⇒ Float
Output only. The total number of points the respondent received for their
submission Only set if the form was a quiz and the response was graded. This
includes points automatically awarded via autograding adjusted by any manual
corrections entered by the form owner.
Corresponds to the JSON property totalScore
627 628 629 |
# File 'lib/google/apis/forms_v1/classes.rb', line 627 def total_score @total_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
634 635 636 637 638 639 640 641 642 |
# File 'lib/google/apis/forms_v1/classes.rb', line 634 def update!(**args) @answers = args[:answers] if args.key?(:answers) @create_time = args[:create_time] if args.key?(:create_time) @form_id = args[:form_id] if args.key?(:form_id) @last_submitted_time = args[:last_submitted_time] if args.key?(:last_submitted_time) @respondent_email = args[:respondent_email] if args.key?(:respondent_email) @response_id = args[:response_id] if args.key?(:response_id) @total_score = args[:total_score] if args.key?(:total_score) end |