Class: Paubox::Form
- Inherits:
-
Object
- Object
- Paubox::Form
- Defined in:
- lib/paubox/form.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#archived ⇒ Object
readonly
Returns the value of attribute archived.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#deleted ⇒ Object
readonly
Returns the value of attribute deleted.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#form_css ⇒ Object
readonly
Returns the value of attribute form_css.
-
#form_html ⇒ Object
readonly
Returns the value of attribute form_html.
-
#form_json ⇒ Object
readonly
Returns the value of attribute form_json.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#old_form_id ⇒ Object
readonly
Returns the value of attribute old_form_id.
-
#recipient ⇒ Object
readonly
Returns the value of attribute recipient.
-
#signable ⇒ Object
readonly
Returns the value of attribute signable.
-
#signature_confirmation_label ⇒ Object
readonly
Returns the value of attribute signature_confirmation_label.
-
#submission_count ⇒ Object
readonly
Returns the value of attribute submission_count.
-
#subscription_list_id ⇒ Object
readonly
Returns the value of attribute subscription_list_id.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#vanity_url ⇒ Object
readonly
Returns the value of attribute vanity_url.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
- #active? ⇒ Boolean
- #archived? ⇒ Boolean
- #deleted? ⇒ Boolean
-
#initialize(args = {}) ⇒ Form
constructor
A new instance of Form.
- #signable? ⇒ Boolean
Constructor Details
#initialize(args = {}) ⇒ Form
Returns a new instance of Form.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/paubox/form.rb', line 11 def initialize(args = {}) @id = args['id'] @title = args['title'] @description = args['description'] @form_html = args['form_html'] @form_json = args['form_json'] @form_css = args['form_css'] @vanity_url = args['vanity_url'] @version = args['version'] @active = args['active'] @customer_id = args['customer_id'] @signable = args['signable'] @signature_confirmation_label = args['signature_confirmation_label'] @submission_count = args['submission_count'] @type = args['type'] @deleted = args['deleted'] @archived = args['archived'] @created_at = args['created_at'] @updated_at = args['updated_at'] @recipient = args['recipient'] @subscription_list_id = args['subscription_list_id'] @old_form_id = args['old_form_id'] end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def active @active end |
#archived ⇒ Object (readonly)
Returns the value of attribute archived.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def archived @archived end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def created_at @created_at end |
#customer_id ⇒ Object (readonly)
Returns the value of attribute customer_id.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def customer_id @customer_id end |
#deleted ⇒ Object (readonly)
Returns the value of attribute deleted.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def deleted @deleted end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def description @description end |
#form_css ⇒ Object (readonly)
Returns the value of attribute form_css.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def form_css @form_css end |
#form_html ⇒ Object (readonly)
Returns the value of attribute form_html.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def form_html @form_html end |
#form_json ⇒ Object (readonly)
Returns the value of attribute form_json.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def form_json @form_json end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def id @id end |
#old_form_id ⇒ Object (readonly)
Returns the value of attribute old_form_id.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def old_form_id @old_form_id end |
#recipient ⇒ Object (readonly)
Returns the value of attribute recipient.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def recipient @recipient end |
#signable ⇒ Object (readonly)
Returns the value of attribute signable.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def signable @signable end |
#signature_confirmation_label ⇒ Object (readonly)
Returns the value of attribute signature_confirmation_label.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def signature_confirmation_label @signature_confirmation_label end |
#submission_count ⇒ Object (readonly)
Returns the value of attribute submission_count.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def submission_count @submission_count end |
#subscription_list_id ⇒ Object (readonly)
Returns the value of attribute subscription_list_id.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def subscription_list_id @subscription_list_id end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def type @type end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def updated_at @updated_at end |
#vanity_url ⇒ Object (readonly)
Returns the value of attribute vanity_url.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def vanity_url @vanity_url end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/paubox/form.rb', line 5 def version @version end |
Instance Method Details
#active? ⇒ Boolean
35 36 37 |
# File 'lib/paubox/form.rb', line 35 def active? @active end |
#archived? ⇒ Boolean
43 44 45 |
# File 'lib/paubox/form.rb', line 43 def archived? @archived end |
#deleted? ⇒ Boolean
39 40 41 |
# File 'lib/paubox/form.rb', line 39 def deleted? @deleted end |
#signable? ⇒ Boolean
47 48 49 |
# File 'lib/paubox/form.rb', line 47 def signable? @signable end |