groupdocs 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. data/CHANGELOG.md +41 -0
  2. data/examples/README.md +2 -3
  3. data/examples/api-samples/Gemfile +5 -0
  4. data/examples/api-samples/Gemfile.lock +27 -0
  5. data/examples/api-samples/README.md +12 -0
  6. data/examples/api-samples/app.rb +17 -0
  7. data/examples/api-samples/public/css/style.css +166 -0
  8. data/examples/api-samples/samples/sample1.rb +17 -0
  9. data/examples/api-samples/samples/sample10.rb +36 -0
  10. data/examples/api-samples/samples/sample2.rb +19 -0
  11. data/examples/api-samples/samples/sample3.rb +23 -0
  12. data/examples/api-samples/samples/sample4.rb +31 -0
  13. data/examples/api-samples/samples/sample5.rb +44 -0
  14. data/examples/api-samples/samples/sample6.rb +3 -0
  15. data/examples/api-samples/samples/sample7.rb +33 -0
  16. data/examples/api-samples/samples/sample8.rb +40 -0
  17. data/examples/api-samples/samples/sample9.rb +22 -0
  18. data/examples/api-samples/views/index.haml +23 -0
  19. data/examples/api-samples/views/layout.haml +7 -0
  20. data/examples/api-samples/views/sample1.haml +71 -0
  21. data/examples/api-samples/views/sample10.haml +69 -0
  22. data/examples/api-samples/views/sample2.haml +59 -0
  23. data/examples/api-samples/views/sample3.haml +62 -0
  24. data/examples/api-samples/views/sample4.haml +58 -0
  25. data/examples/api-samples/views/sample5.haml +62 -0
  26. data/examples/api-samples/views/sample6.haml +145 -0
  27. data/examples/api-samples/views/sample7.haml +59 -0
  28. data/examples/api-samples/views/sample8.haml +75 -0
  29. data/examples/api-samples/views/sample9.haml +61 -0
  30. data/examples/{annotations → viewer}/Gemfile +0 -0
  31. data/examples/viewer/app.rb +52 -0
  32. data/groupdocs.gemspec +5 -4
  33. data/lib/groupdocs/api.rb +1 -0
  34. data/lib/groupdocs/api/entity.rb +2 -0
  35. data/lib/groupdocs/api/helpers.rb +2 -0
  36. data/lib/groupdocs/api/helpers/accessor_helper.rb +30 -0
  37. data/lib/groupdocs/api/helpers/mime_helper.rb +21 -0
  38. data/lib/groupdocs/api/helpers/rest_helper.rb +3 -2
  39. data/lib/groupdocs/api/request.rb +1 -3
  40. data/lib/groupdocs/datasource.rb +1 -2
  41. data/lib/groupdocs/document.rb +133 -3
  42. data/lib/groupdocs/document/annotation.rb +14 -13
  43. data/lib/groupdocs/document/annotation/reply.rb +4 -8
  44. data/lib/groupdocs/document/annotation/reviewer.rb +2 -4
  45. data/lib/groupdocs/document/field.rb +10 -8
  46. data/lib/groupdocs/document/rectangle.rb +10 -18
  47. data/lib/groupdocs/job.rb +1 -1
  48. data/lib/groupdocs/questionnaire.rb +138 -44
  49. data/lib/groupdocs/questionnaire/collector.rb +262 -0
  50. data/lib/groupdocs/questionnaire/execution.rb +93 -10
  51. data/lib/groupdocs/questionnaire/question.rb +1 -2
  52. data/lib/groupdocs/signature.rb +16 -24
  53. data/lib/groupdocs/signature/contact.rb +2 -4
  54. data/lib/groupdocs/signature/envelope.rb +3 -6
  55. data/lib/groupdocs/signature/envelope/log.rb +2 -4
  56. data/lib/groupdocs/signature/field.rb +21 -42
  57. data/lib/groupdocs/signature/field/location.rb +18 -36
  58. data/lib/groupdocs/signature/form.rb +9 -18
  59. data/lib/groupdocs/signature/list.rb +1 -2
  60. data/lib/groupdocs/signature/recipient.rb +3 -6
  61. data/lib/groupdocs/signature/role.rb +4 -8
  62. data/lib/groupdocs/signature/shared/entity_fields.rb +12 -20
  63. data/lib/groupdocs/signature/template.rb +1 -2
  64. data/lib/groupdocs/storage/file.rb +3 -1
  65. data/lib/groupdocs/storage/folder.rb +7 -1
  66. data/lib/groupdocs/subscription.rb +6 -12
  67. data/lib/groupdocs/subscription/limit.rb +4 -8
  68. data/lib/groupdocs/user.rb +3 -6
  69. data/lib/groupdocs/version.rb +1 -1
  70. data/spec/groupdocs/api/helpers/accessor_helper_spec.rb +16 -0
  71. data/spec/groupdocs/api/helpers/mime_helper_spec.rb +16 -0
  72. data/spec/groupdocs/api/helpers/rest_helper_spec.rb +4 -0
  73. data/spec/groupdocs/api/request_spec.rb +3 -5
  74. data/spec/groupdocs/datasource/field_spec.rb +3 -6
  75. data/spec/groupdocs/datasource_spec.rb +8 -15
  76. data/spec/groupdocs/document/annotation/reply_spec.rb +13 -24
  77. data/spec/groupdocs/document/annotation/reviewer_spec.rb +5 -9
  78. data/spec/groupdocs/document/annotation_spec.rb +35 -40
  79. data/spec/groupdocs/document/change_spec.rb +6 -11
  80. data/spec/groupdocs/document/field_spec.rb +13 -13
  81. data/spec/groupdocs/document/metadata_spec.rb +5 -10
  82. data/spec/groupdocs/document/rectangle_spec.rb +6 -18
  83. data/spec/groupdocs/document/view_spec.rb +3 -6
  84. data/spec/groupdocs/document_spec.rb +123 -10
  85. data/spec/groupdocs/job_spec.rb +9 -18
  86. data/spec/groupdocs/questionnaire/collector_spec.rb +201 -0
  87. data/spec/groupdocs/questionnaire/execution_spec.rb +91 -23
  88. data/spec/groupdocs/questionnaire/page_spec.rb +3 -6
  89. data/spec/groupdocs/questionnaire/question/answer_spec.rb +2 -4
  90. data/spec/groupdocs/questionnaire/question_spec.rb +7 -14
  91. data/spec/groupdocs/questionnaire_spec.rb +117 -41
  92. data/spec/groupdocs/signature/contact_spec.rb +9 -17
  93. data/spec/groupdocs/signature/envelope/log_spec.rb +8 -16
  94. data/spec/groupdocs/signature/envelope_spec.rb +9 -17
  95. data/spec/groupdocs/signature/field/location_spec.rb +32 -65
  96. data/spec/groupdocs/signature/field_spec.rb +48 -95
  97. data/spec/groupdocs/signature/form_spec.rb +22 -43
  98. data/spec/groupdocs/signature/list_spec.rb +6 -11
  99. data/spec/groupdocs/signature/recipient_spec.rb +11 -22
  100. data/spec/groupdocs/signature/role_spec.rb +11 -21
  101. data/spec/groupdocs/signature/template_spec.rb +2 -4
  102. data/spec/groupdocs/signature_spec.rb +28 -54
  103. data/spec/groupdocs/storage/file_spec.rb +14 -26
  104. data/spec/groupdocs/storage/folder_spec.rb +16 -22
  105. data/spec/groupdocs/storage/package_spec.rb +2 -4
  106. data/spec/groupdocs/subscription/limit_spec.rb +8 -16
  107. data/spec/groupdocs/subscription_spec.rb +11 -22
  108. data/spec/groupdocs/user_spec.rb +21 -41
  109. data/spec/groupdocs_spec.rb +4 -8
  110. data/spec/spec_helper.rb +12 -0
  111. data/spec/support/files/signature.png +0 -0
  112. data/spec/support/json/annotation_list.json +6 -6
  113. data/spec/support/json/comparison_changes.json +8 -8
  114. data/spec/support/json/document_fields.json +8 -8
  115. data/spec/support/json/document_page_images_get.json +20 -0
  116. data/spec/support/json/questionnaire_collector.json +17 -0
  117. data/spec/support/json/questionnaire_collectors.json +38 -0
  118. data/spec/support/json/questionnaire_collectors_add.json +10 -0
  119. data/spec/support/json/questionnaire_create.json +3 -1
  120. data/spec/support/json/{questionnaire_execution_create.json → questionnaire_execution_add.json} +1 -1
  121. data/spec/support/json/questionnaire_get.json +3 -0
  122. data/spec/support/json/questionnaires_get.json +36 -18
  123. data/spec/support/json/sign_documents.json +16 -0
  124. data/spec/support/json/templates_get.json +21 -0
  125. data/spec/support/shared_examples/api/entity.rb +2 -0
  126. data/spec/support/shared_examples/api/helpers/access_mode_helper.rb +1 -2
  127. data/spec/support/shared_examples/api/helpers/status_helper.rb +1 -2
  128. data/spec/support/shared_examples/signature/shared/entity_fields.rb +22 -43
  129. metadata +82 -16
  130. data/examples/annotations/app.rb +0 -67
@@ -4,21 +4,34 @@ module GroupDocs
4
4
  include Api::Helpers::Status
5
5
 
6
6
  #
7
- # Returns an array of all executions.
7
+ # Returns execution by identifier.
8
8
  #
9
+ # @param [String] guid
9
10
  # @param [Hash] access Access credentials
10
11
  # @option access [String] :client_id
11
12
  # @option access [String] :private_key
12
- # @return [Array<GroupDocs::Questionnaire::Execution>]
13
+ # @return [GroupDocs::Questionnaire::Execution, nil]
13
14
  #
14
- def self.all!(access = {})
15
- Questionnaire.executions!(access)
15
+ def self.get!(guid, access = {})
16
+ json = Api::Request.new do |request|
17
+ request[:access] = access
18
+ request[:method] = :GET
19
+ request[:path] = "/merge/{{client_id}}/questionnaires/executions/#{guid}"
20
+ end.execute!
21
+
22
+ new(json[:execution])
23
+ rescue BadResponseError
24
+ nil
16
25
  end
17
26
 
18
27
  # @attr [Integer] id
19
28
  attr_accessor :id
20
- # @attr [Integer] questionnaire_id
21
- attr_accessor :questionnaire_id
29
+ # @attr [String] guid
30
+ attr_accessor :guid
31
+ # @attr [Integer] collector_id
32
+ attr_accessor :collector_id
33
+ # @attr [String] collector_guid
34
+ attr_accessor :collector_guid
22
35
  # @attr [String] questionnaire_name
23
36
  attr_accessor :questionnaire_name
24
37
  # @attr [GroupDocs::User] owner
@@ -31,18 +44,41 @@ module GroupDocs
31
44
  attr_accessor :datasource_id
32
45
  # @attr [Symbol] status
33
46
  attr_accessor :status
34
- # @attr [String] guid
35
- attr_accessor :guid
47
+ # @attr [Time] modified
48
+ attr_accessor :modified
49
+ # @attr [GroupDocs::Storage::File] document
50
+ attr_accessor :document
36
51
 
37
52
  #
38
53
  # Converts status to human-readable format.
39
- #
40
54
  # @return [Symbol]
41
55
  #
42
56
  def status
43
57
  parse_status(@status)
44
58
  end
45
59
 
60
+ #
61
+ # Converts timestamp which is return by API server to Time object.
62
+ # @return [Time]
63
+ #
64
+ def modified
65
+ Time.at(@modified / 1000)
66
+ end
67
+
68
+ #
69
+ # Converts document to GroupDocs::Document object.
70
+ # @param [Hash] options
71
+ #
72
+ def document=(options)
73
+ if options.is_a?(Hash)
74
+ options = GroupDocs::Storage::File.new(options)
75
+ elsif options.is_a?(Document)
76
+ options = options.file
77
+ end
78
+
79
+ @document = options
80
+ end
81
+
46
82
  %w(owner executive approver).each do |method|
47
83
  #
48
84
  # Converts hash of user options to GroupDocs::User object.
@@ -51,7 +87,7 @@ module GroupDocs
51
87
  #
52
88
  define_method(:"#{method}=") do |options|
53
89
  case options
54
- when GroupDocs::User then instance_variable_set(:"@#{method}", options)
90
+ when User then instance_variable_set(:"@#{method}", options)
55
91
  when Hash then instance_variable_set(:"@#{method}", User.new(options))
56
92
  end
57
93
  end
@@ -94,5 +130,52 @@ module GroupDocs
94
130
  end.execute!
95
131
  end
96
132
 
133
+ #
134
+ # Deletes execution.
135
+ #
136
+ # @param [Hash] access Access credentials
137
+ # @option access [String] :client_id
138
+ # @option access [String] :private_key
139
+ #
140
+ def delete!(access = {})
141
+ Api::Request.new do |request|
142
+ request[:access] = access
143
+ request[:method] = :DELETE
144
+ request[:path] = "/merge/{{client_id}}/questionnaires/executions/#{id}"
145
+ end.execute!
146
+ end
147
+
148
+ #
149
+ # Creates new job to merge datasource into questionnaire collector execution.
150
+ #
151
+ # When you fill collector, execution for it creates. You can then fill this execution
152
+ # (for example if you didn't answered all the questions at first).
153
+ #
154
+ # @param [GroupDocs::DataSource] datasource
155
+ # @param [Hash] options
156
+ # @option options [Boolean] :new_type New file format type
157
+ # @option options [Boolean] :email_results Set to true if converted document should be emailed
158
+ # @param [Hash] access Access credentials
159
+ # @option access [String] :client_id
160
+ # @option access [String] :private_key
161
+ # @return [GroupDocs::Job]
162
+ #
163
+ # @raise [ArgumentError] if datasource is not GroupDocs::DataSource object
164
+ #
165
+ def fill!(datasource, options = {}, access = {})
166
+ datasource.is_a?(GroupDocs::DataSource) or raise ArgumentError,
167
+ "Datasource should be GroupDocs::DataSource object, received: #{datasource.inspect}"
168
+
169
+ api = Api::Request.new do |request|
170
+ request[:access] = access
171
+ request[:method] = :POST
172
+ request[:path] = "/merge/{{client_id}}/questionnaires/executions/#{guid}/datasources/#{datasource.id}"
173
+ end
174
+ api.add_params(options)
175
+ json = api.execute!
176
+
177
+ Job.new(id: json[:job_id])
178
+ end
179
+
97
180
  end # Questionnaire::Execution
98
181
  end # GroupDocs
@@ -19,8 +19,7 @@ module GroupDocs
19
19
  attr_accessor :answers
20
20
 
21
21
  # Human-readable accessors
22
- alias_method :default_answer, :def_answer
23
- alias_method :default_answer=, :def_answer=
22
+ alias_accessor :default_answer, :def_answer
24
23
 
25
24
  #
26
25
  # Converts each answer to GroupDocs::Questionnaire::Question::Answer object.
@@ -11,6 +11,8 @@ module GroupDocs
11
11
  require 'groupdocs/signature/role'
12
12
  require 'groupdocs/signature/template'
13
13
 
14
+ include Api::Helpers::MIME
15
+
14
16
  #
15
17
  # Returns a list of all user signatures.
16
18
  #
@@ -61,32 +63,22 @@ module GroupDocs
61
63
  attr_accessor :initialsImageUrl
62
64
  # @attr [String] createdTimeStamp
63
65
  attr_accessor :createdTimeStamp
66
+ # @attr [String] image_path
67
+ attr_accessor :image_path
64
68
 
65
69
  # Human-readable accessors
66
- alias_method :user_guid, :userGuid
67
- alias_method :user_guid=, :userGuid=
68
- alias_method :recipient_id, :recipientId
69
- alias_method :recipient_id=, :recipientId=
70
- alias_method :company_name, :companyName
71
- alias_method :company_name=, :companyName=
72
- alias_method :first_name, :firstName
73
- alias_method :first_name=, :firstName=
74
- alias_method :last_name, :lastName
75
- alias_method :last_name=, :lastName=
76
- alias_method :full_name, :fullName
77
- alias_method :full_name=, :fullName=
78
- alias_method :text_initials, :textInitials
79
- alias_method :text_initials=, :textInitials=
80
- alias_method :signature_image_file_id, :signatureImageFileId
81
- alias_method :signature_image_file_id=, :signatureImageFileId=
82
- alias_method :initials_image_file_id, :initialsImageFileId
83
- alias_method :initials_image_file_id=, :initialsImageFileId=
84
- alias_method :signature_image_url, :signatureImageUrl
85
- alias_method :signature_image_url=, :signatureImageUrl=
86
- alias_method :initials_image_url, :initialsImageUrl
87
- alias_method :initials_image_url=, :initialsImageUrl=
88
- alias_method :created_time_stamp, :createdTimeStamp
89
- alias_method :created_time_stamp=, :createdTimeStamp=
70
+ alias_accessor :user_guid, :userGuid
71
+ alias_accessor :recipient_id, :recipientId
72
+ alias_accessor :company_name, :companyName
73
+ alias_accessor :first_name, :firstName
74
+ alias_accessor :last_name, :lastName
75
+ alias_accessor :full_name, :fullName
76
+ alias_accessor :text_initials, :textInitials
77
+ alias_accessor :signature_image_file_id, :signatureImageFileId
78
+ alias_accessor :initials_image_file_id, :initialsImageFileId
79
+ alias_accessor :signature_image_url, :signatureImageUrl
80
+ alias_accessor :initials_image_url, :initialsImageUrl
81
+ alias_accessor :created_time_stamp, :createdTimeStamp
90
82
 
91
83
  #
92
84
  # Creates signature.
@@ -76,10 +76,8 @@ module GroupDocs
76
76
  attr_accessor :provider
77
77
 
78
78
  # Human-readable accessors
79
- alias_method :first_name, :firstName
80
- alias_method :first_name=, :firstName=
81
- alias_method :last_name, :lastName
82
- alias_method :last_name=, :lastName=
79
+ alias_accessor :first_name, :firstName
80
+ alias_accessor :last_name, :lastName
83
81
 
84
82
  #
85
83
  # Adds contact.
@@ -92,12 +92,9 @@ module GroupDocs
92
92
  attr_accessor :status
93
93
 
94
94
  # Human-readable accessors
95
- alias_method :creation_date_time, :creationDateTime
96
- alias_method :creation_date_time=, :creationDateTime=
97
- alias_method :status_date_time, :statusDateTime
98
- alias_method :status_date_time=, :statusDateTime=
99
- alias_method :envelope_expire_time, :envelopeExpireTime
100
- alias_method :envelope_expire_time=, :envelopeExpireTime=
95
+ alias_accessor :creation_date_time, :creationDateTime
96
+ alias_accessor :status_date_time, :statusDateTime
97
+ alias_accessor :envelope_expire_time, :envelopeExpireTime
101
98
 
102
99
  #
103
100
  # Converts status to human-readable format.
@@ -13,10 +13,8 @@ module GroupDocs
13
13
  attr_accessor :remoteAddress
14
14
 
15
15
  # Human-readable accessors
16
- alias_method :remote_address, :remoteAddress
17
- alias_method :remote_address=, :remoteAddress=
18
- alias_method :user_name, :userName
19
- alias_method :user_name=, :userName=
16
+ alias_accessor :remote_address, :remoteAddress
17
+ alias_accessor :user_name, :userName
20
18
 
21
19
  end # Signature::Envelope::Log
22
20
  end # GroupDocs
@@ -92,48 +92,27 @@ module GroupDocs
92
92
  attr_accessor :locations
93
93
 
94
94
  # Human-readable accessors
95
- alias_method :template_id, :templateId
96
- alias_method :template_id=, :templateId=
97
- alias_method :recipient_id, :recipientId
98
- alias_method :recipient_id=, :recipientId=
99
- alias_method :signature_field_id, :signatureFieldId
100
- alias_method :signature_field_id=, :signatureFieldId=
101
- alias_method :graph_size_w, :graphSizeW
102
- alias_method :graph_size_w=, :graphSizeW=
103
- alias_method :graph_size_w, :graphSizeW
104
- alias_method :graph_size_w=, :graphSizeW=
105
- alias_method :graph_size_width, :graphSizeW
106
- alias_method :graph_size_width=, :graphSizeW=
107
- alias_method :graph_size_h, :graphSizeH
108
- alias_method :graph_size_h=, :graphSizeH=
109
- alias_method :graph_size_height, :graphSizeH
110
- alias_method :graph_size_height=, :graphSizeH=
111
- alias_method :get_data_from, :getDataFrom
112
- alias_method :get_data_from=, :getDataFrom=
113
- alias_method :regular_expression, :regularExpression
114
- alias_method :regular_expression=, :regularExpression=
115
- alias_method :font_name, :fontName
116
- alias_method :font_name=, :fontName=
117
- alias_method :font_color, :fontColor
118
- alias_method :font_color=, :fontColor=
119
- alias_method :font_size, :fontSize
120
- alias_method :font_size=, :fontSize=
121
- alias_method :font_bold, :fontBold
122
- alias_method :font_bold=, :fontBold=
123
- alias_method :font_italic, :fontItalic
124
- alias_method :font_italic=, :fontItalic=
125
- alias_method :font_underline, :fontUnderline
126
- alias_method :font_underline=, :fontUnderline=
127
- alias_method :is_system, :isSystem
128
- alias_method :is_system=, :isSystem=
129
- alias_method :acceptable_values, :acceptableValues
130
- alias_method :acceptable_values=, :acceptableValues=
131
- alias_method :default_value, :defaultValue
132
- alias_method :default_value=, :defaultValue=
133
- alias_method :text_rows, :textRows
134
- alias_method :text_rows=, :textRows=
135
- alias_method :text_columns, :textColumns
136
- alias_method :text_columns=, :textColumns=
95
+ alias_accessor :template_id, :templateId
96
+ alias_accessor :recipient_id, :recipientId
97
+ alias_accessor :signature_field_id, :signatureFieldId
98
+ alias_accessor :graph_size_w, :graphSizeW
99
+ alias_accessor :graph_size_w, :graphSizeW
100
+ alias_accessor :graph_size_width, :graphSizeW
101
+ alias_accessor :graph_size_h, :graphSizeH
102
+ alias_accessor :graph_size_height, :graphSizeH
103
+ alias_accessor :get_data_from, :getDataFrom
104
+ alias_accessor :regular_expression, :regularExpression
105
+ alias_accessor :font_name, :fontName
106
+ alias_accessor :font_color, :fontColor
107
+ alias_accessor :font_size, :fontSize
108
+ alias_accessor :font_bold, :fontBold
109
+ alias_accessor :font_italic, :fontItalic
110
+ alias_accessor :font_underline, :fontUnderline
111
+ alias_accessor :is_system, :isSystem
112
+ alias_accessor :acceptable_values, :acceptableValues
113
+ alias_accessor :default_value, :defaultValue
114
+ alias_accessor :text_rows, :textRows
115
+ alias_accessor :text_columns, :textColumns
137
116
 
138
117
  #
139
118
  # Converts location to GroupDocs::Signature::Field::Location object.
@@ -31,42 +31,24 @@ module GroupDocs
31
31
  attr_accessor :fontUnderline
32
32
 
33
33
  # Human-readable accessors
34
- alias_method :document_id, :documentId
35
- alias_method :document_id=, :documentId=
36
- alias_method :field_id, :fieldId
37
- alias_method :field_id=, :fieldId=
38
- alias_method :location_x, :locationX
39
- alias_method :location_x=, :locationX=
40
- alias_method :x, :locationX
41
- alias_method :x=, :locationX=
42
- alias_method :location_y, :locationY
43
- alias_method :location_y=, :locationY=
44
- alias_method :y, :locationY
45
- alias_method :y=, :locationY=
46
- alias_method :location_w, :locationWidth
47
- alias_method :location_w=, :locationWidth=
48
- alias_method :location_width, :locationWidth
49
- alias_method :location_width=, :locationWidth=
50
- alias_method :w, :locationWidth
51
- alias_method :w=, :locationWidth=
52
- alias_method :location_h, :locationHeight
53
- alias_method :location_h=, :locationHeight=
54
- alias_method :location_height, :locationHeight
55
- alias_method :location_height=, :locationHeight=
56
- alias_method :h, :locationHeight
57
- alias_method :h=, :locationHeight=
58
- alias_method :font_name, :fontName
59
- alias_method :font_name=, :fontName=
60
- alias_method :font_color, :fontColor
61
- alias_method :font_color=, :fontColor=
62
- alias_method :font_size, :fontSize
63
- alias_method :font_size=, :fontSize=
64
- alias_method :font_bold, :fontBold
65
- alias_method :font_bold=, :fontBold=
66
- alias_method :font_italic, :fontItalic
67
- alias_method :font_italic=, :fontItalic=
68
- alias_method :font_underline, :fontUnderline
69
- alias_method :font_underline=, :fontUnderline=
34
+ alias_accessor :document_id, :documentId
35
+ alias_accessor :field_id, :fieldId
36
+ alias_accessor :location_x, :locationX
37
+ alias_accessor :x, :locationX
38
+ alias_accessor :location_y, :locationY
39
+ alias_accessor :y, :locationY
40
+ alias_accessor :location_w, :locationWidth
41
+ alias_accessor :location_width, :locationWidth
42
+ alias_accessor :w, :locationWidth
43
+ alias_accessor :location_h, :locationHeight
44
+ alias_accessor :location_height, :locationHeight
45
+ alias_accessor :h, :locationHeight
46
+ alias_accessor :font_name, :fontName
47
+ alias_accessor :font_color, :fontColor
48
+ alias_accessor :font_size, :fontSize
49
+ alias_accessor :font_bold, :fontBold
50
+ alias_accessor :font_italic, :fontItalic
51
+ alias_accessor :font_underline, :fontUnderline
70
52
 
71
53
  end # Signature::Field::Location
72
54
  end # GroupDocs
@@ -69,24 +69,15 @@ module GroupDocs
69
69
  attr_accessor :status
70
70
 
71
71
  # Human-readable accessors
72
- alias_method :owner_guid, :ownerGuid
73
- alias_method :owner_guid=, :ownerGuid=
74
- alias_method :template_guid, :templateGuid
75
- alias_method :template_guid=, :templateGuid=
76
- alias_method :created_time_stamp, :createdTimeStamp
77
- alias_method :created_time_stamp=, :createdTimeStamp=
78
- alias_method :status_date_time, :statusDateTime
79
- alias_method :status_date_time=, :statusDateTime=
80
- alias_method :documents_count, :documentsCount
81
- alias_method :documents_count=, :documentsCount=
82
- alias_method :documents_pages, :documentsPages
83
- alias_method :documents_pages=, :documentsPages=
84
- alias_method :participants_count, :participantsCount
85
- alias_method :participants_count=, :participantsCount=
86
- alias_method :fields_in_final_file_name, :fieldsInFinalFileName
87
- alias_method :fields_in_final_file_name=, :fieldsInFinalFileName=
88
- alias_method :can_participant_download_form, :canParticipantDownloadForm
89
- alias_method :can_participant_download_form=, :canParticipantDownloadForm=
72
+ alias_accessor :owner_guid, :ownerGuid
73
+ alias_accessor :template_guid, :templateGuid
74
+ alias_accessor :created_time_stamp, :createdTimeStamp
75
+ alias_accessor :status_date_time, :statusDateTime
76
+ alias_accessor :documents_count, :documentsCount
77
+ alias_accessor :documents_pages, :documentsPages
78
+ alias_accessor :participants_count, :participantsCount
79
+ alias_accessor :fields_in_final_file_name, :fieldsInFinalFileName
80
+ alias_accessor :can_participant_download_form, :canParticipantDownloadForm
90
81
 
91
82
  #
92
83
  # Converts status to human-readable format.
@@ -31,8 +31,7 @@ module GroupDocs
31
31
  attr_accessor :defaultValue
32
32
 
33
33
  # Human-readable accessors
34
- alias_method :default_value, :defaultValue
35
- alias_method :default_value=, :defaultValue=
34
+ alias_accessor :default_value, :defaultValue
36
35
 
37
36
  #
38
37
  # Converts values to API compatible view.
@@ -28,12 +28,9 @@ module GroupDocs
28
28
  attr_accessor :status
29
29
 
30
30
  # Human-readable accessors
31
- alias_method :first_name, :firstName
32
- alias_method :first_name=, :firstName=
33
- alias_method :last_name, :lastName
34
- alias_method :last_name=, :lastName=
35
- alias_method :role_id, :roleId
36
- alias_method :role_id=, :roleId=
31
+ alias_accessor :first_name, :firstName
32
+ alias_accessor :last_name, :lastName
33
+ alias_accessor :role_id, :roleId
37
34
 
38
35
  #
39
36
  # Converts status to human-readable format.