Class: Paubox::FormSubmission

Inherits:
Object
  • Object
show all
Defined in:
lib/paubox/form_submission.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute attachment_name.



5
6
7
# File 'lib/paubox/form_submission.rb', line 5

def attachment_name
  @attachment_name
end

#attachment_typeObject (readonly)

Returns the value of attribute attachment_type.



5
6
7
# File 'lib/paubox/form_submission.rb', line 5

def attachment_type
  @attachment_type
end

#attachment_urlObject (readonly)

Returns the value of attribute attachment_url.



5
6
7
# File 'lib/paubox/form_submission.rb', line 5

def attachment_url
  @attachment_url
end

#created_atObject (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_dataObject (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_idObject (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

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/paubox/form_submission.rb', line 5

def id
  @id
end

#recipientsObject (readonly)

Returns the value of attribute recipients.



5
6
7
# File 'lib/paubox/form_submission.rb', line 5

def recipients
  @recipients
end

#storage_typeObject (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_urlObject (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_emailObject (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