Class: Paubox::FormSubmission
- Inherits:
-
Object
- Object
- Paubox::FormSubmission
- Defined in:
- lib/paubox/form_submission.rb
Instance Attribute Summary collapse
-
#attachment_name ⇒ Object
readonly
Returns the value of attribute attachment_name.
-
#attachment_type ⇒ Object
readonly
Returns the value of attribute attachment_type.
-
#attachment_url ⇒ Object
readonly
Returns the value of attribute attachment_url.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#form_data ⇒ Object
readonly
Returns the value of attribute form_data.
-
#form_id ⇒ Object
readonly
Returns the value of attribute form_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#recipients ⇒ Object
readonly
Returns the value of attribute recipients.
-
#storage_type ⇒ Object
readonly
Returns the value of attribute storage_type.
-
#storage_url ⇒ Object
readonly
Returns the value of attribute storage_url.
-
#submitter_email ⇒ Object
readonly
Returns the value of attribute submitter_email.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ FormSubmission
constructor
A new instance of FormSubmission.
Constructor Details
#initialize(args = {}) ⇒ FormSubmission
Returns a new instance of FormSubmission.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/paubox/form_submission.rb', line 9 def initialize(args = {}) @id = args['id'] @form_id = args['form_id'] @form_data = parse_form_data(args['form_data']) @storage_type = args['storage_type'] @storage_url = args['storage_url'] @submitter_email = args['submitter_email'] @recipients = args['recipients'] @attachment_name = args['attachment_name'] @attachment_url = args['attachment_url'] @attachment_type = args['attachment_type'] @created_at = args['created_at'] end |
Instance Attribute Details
#attachment_name ⇒ Object (readonly)
Returns the value of attribute attachment_name.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def @attachment_name end |
#attachment_type ⇒ Object (readonly)
Returns the value of attribute attachment_type.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def @attachment_type end |
#attachment_url ⇒ Object (readonly)
Returns the value of attribute attachment_url.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def @attachment_url end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def created_at @created_at end |
#form_data ⇒ Object (readonly)
Returns the value of attribute form_data.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def form_data @form_data end |
#form_id ⇒ Object (readonly)
Returns the value of attribute form_id.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def form_id @form_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def id @id end |
#recipients ⇒ Object (readonly)
Returns the value of attribute recipients.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def recipients @recipients end |
#storage_type ⇒ Object (readonly)
Returns the value of attribute storage_type.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def storage_type @storage_type end |
#storage_url ⇒ Object (readonly)
Returns the value of attribute storage_url.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def storage_url @storage_url end |
#submitter_email ⇒ Object (readonly)
Returns the value of attribute submitter_email.
5 6 7 |
# File 'lib/paubox/form_submission.rb', line 5 def submitter_email @submitter_email end |