Class: HelloSign::Parameters::ReusableFormSignatureRequest
- Inherits:
-
Object
- Object
- HelloSign::Parameters::ReusableFormSignatureRequest
- Defined in:
- lib/hello_sign/parameters/reusable_form_signature_request.rb
Instance Attribute Summary collapse
-
#ccs ⇒ Object
writeonly
Sets the attribute ccs.
-
#client_id ⇒ Object
writeonly
Sets the attribute client_id.
-
#custom_fields ⇒ Object
writeonly
Sets the attribute custom_fields.
-
#message ⇒ Object
writeonly
Sets the attribute message.
-
#reusable_form_id ⇒ Object
writeonly
Sets the attribute reusable_form_id.
-
#signers ⇒ Object
writeonly
Sets the attribute signers.
-
#subject ⇒ Object
writeonly
Sets the attribute subject.
-
#test_mode ⇒ Object
writeonly
Sets the attribute test_mode.
-
#title ⇒ Object
writeonly
Sets the attribute title.
Instance Method Summary collapse
- #formatted ⇒ Object
-
#initialize ⇒ ReusableFormSignatureRequest
constructor
A new instance of ReusableFormSignatureRequest.
Constructor Details
#initialize ⇒ ReusableFormSignatureRequest
Returns a new instance of ReusableFormSignatureRequest.
11 12 13 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 11 def initialize @test_mode, @ccs, @signers, @custom_fields = 0, nil, nil, nil end |
Instance Attribute Details
#ccs=(value) ⇒ Object
Sets the attribute ccs
9 10 11 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 9 def ccs=(value) @ccs = value end |
#client_id=(value) ⇒ Object
Sets the attribute client_id
4 5 6 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 4 def client_id=(value) @client_id = value end |
#custom_fields=(value) ⇒ Object
Sets the attribute custom_fields
9 10 11 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 9 def custom_fields=(value) @custom_fields = value end |
#message=(value) ⇒ Object
Sets the attribute message
4 5 6 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 4 def (value) @message = value end |
#reusable_form_id=(value) ⇒ Object
Sets the attribute reusable_form_id
4 5 6 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 4 def reusable_form_id=(value) @reusable_form_id = value end |
#signers=(value) ⇒ Object
Sets the attribute signers
9 10 11 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 9 def signers=(value) @signers = value end |
#subject=(value) ⇒ Object
Sets the attribute subject
4 5 6 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 4 def subject=(value) @subject = value end |
#test_mode=(value) ⇒ Object
Sets the attribute test_mode
4 5 6 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 4 def test_mode=(value) @test_mode = value end |
#title=(value) ⇒ Object
Sets the attribute title
4 5 6 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 4 def title=(value) @title = value end |
Instance Method Details
#formatted ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 15 def formatted { test_mode: test_mode, reusable_form_id: reusable_form_id, title: title, subject: subject, message: , ccs: formatted_ccs, signers: formatted_signers, custom_fields: formatted_custom_fields }.tap do |f| f.merge!(client_id: client_id) unless client_id.nil? end end |