Class: HelloSign::Parameters::ReusableFormSignatureRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/hello_sign/parameters/reusable_form_signature_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeReusableFormSignatureRequest

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

Parameters:

  • value

    the value to set the attribute ccs to.



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

Parameters:

  • value

    the value to set the attribute client_id to.



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

Parameters:

  • value

    the value to set the attribute custom_fields to.



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

Parameters:

  • value

    the value to set the attribute message to.



4
5
6
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 4

def message=(value)
  @message = value
end

#reusable_form_id=(value) ⇒ Object

Sets the attribute reusable_form_id

Parameters:

  • value

    the value to set the attribute reusable_form_id to.



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

Parameters:

  • value

    the value to set the attribute signers to.



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

Parameters:

  • value

    the value to set the attribute subject to.



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

Parameters:

  • value

    the value to set the attribute test_mode to.



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

Parameters:

  • value

    the value to set the attribute title to.



4
5
6
# File 'lib/hello_sign/parameters/reusable_form_signature_request.rb', line 4

def title=(value)
  @title = value
end

Instance Method Details

#formattedObject



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:          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