Class: Pinnacle::Types::FormSubmissionAnswer

Inherits:
Internal::Types::Model show all
Extended by:
Internal::Types::Union
Defined in:
lib/pinnacle/types/form_submission_answer.rb

Overview

The value submitted for a single form field. Shape depends on the field type:

  • ‘text`, `email`, `phone`, `url`, `textarea`, `select`, `radio` → string

  • ‘number` → number

  • ‘checkbox` (single) → boolean

  • ‘checkbox` (multi), `multiselect` → array of strings

  • Skipped optional field → null

Method Summary

Methods included from Internal::Types::Union

coerce, discriminant, load, member, members, type_member?

Methods included from Internal::Types::Type

#coerce, #strict!, #strict?

Methods included from Internal::JSON::Serializable

#dump, #load

Methods inherited from Internal::Types::Model

#==, ===, add_extra_field_definition, coerce, extra_fields, field, fields, #initialize, #inspect, literal, load, #to_h

Constructor Details

This class inherits a constructor from Pinnacle::Internal::Types::Model