groupdocs 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +41 -0
- data/examples/README.md +2 -3
- data/examples/api-samples/Gemfile +5 -0
- data/examples/api-samples/Gemfile.lock +27 -0
- data/examples/api-samples/README.md +12 -0
- data/examples/api-samples/app.rb +17 -0
- data/examples/api-samples/public/css/style.css +166 -0
- data/examples/api-samples/samples/sample1.rb +17 -0
- data/examples/api-samples/samples/sample10.rb +36 -0
- data/examples/api-samples/samples/sample2.rb +19 -0
- data/examples/api-samples/samples/sample3.rb +23 -0
- data/examples/api-samples/samples/sample4.rb +31 -0
- data/examples/api-samples/samples/sample5.rb +44 -0
- data/examples/api-samples/samples/sample6.rb +3 -0
- data/examples/api-samples/samples/sample7.rb +33 -0
- data/examples/api-samples/samples/sample8.rb +40 -0
- data/examples/api-samples/samples/sample9.rb +22 -0
- data/examples/api-samples/views/index.haml +23 -0
- data/examples/api-samples/views/layout.haml +7 -0
- data/examples/api-samples/views/sample1.haml +71 -0
- data/examples/api-samples/views/sample10.haml +69 -0
- data/examples/api-samples/views/sample2.haml +59 -0
- data/examples/api-samples/views/sample3.haml +62 -0
- data/examples/api-samples/views/sample4.haml +58 -0
- data/examples/api-samples/views/sample5.haml +62 -0
- data/examples/api-samples/views/sample6.haml +145 -0
- data/examples/api-samples/views/sample7.haml +59 -0
- data/examples/api-samples/views/sample8.haml +75 -0
- data/examples/api-samples/views/sample9.haml +61 -0
- data/examples/{annotations → viewer}/Gemfile +0 -0
- data/examples/viewer/app.rb +52 -0
- data/groupdocs.gemspec +5 -4
- data/lib/groupdocs/api.rb +1 -0
- data/lib/groupdocs/api/entity.rb +2 -0
- data/lib/groupdocs/api/helpers.rb +2 -0
- data/lib/groupdocs/api/helpers/accessor_helper.rb +30 -0
- data/lib/groupdocs/api/helpers/mime_helper.rb +21 -0
- data/lib/groupdocs/api/helpers/rest_helper.rb +3 -2
- data/lib/groupdocs/api/request.rb +1 -3
- data/lib/groupdocs/datasource.rb +1 -2
- data/lib/groupdocs/document.rb +133 -3
- data/lib/groupdocs/document/annotation.rb +14 -13
- data/lib/groupdocs/document/annotation/reply.rb +4 -8
- data/lib/groupdocs/document/annotation/reviewer.rb +2 -4
- data/lib/groupdocs/document/field.rb +10 -8
- data/lib/groupdocs/document/rectangle.rb +10 -18
- data/lib/groupdocs/job.rb +1 -1
- data/lib/groupdocs/questionnaire.rb +138 -44
- data/lib/groupdocs/questionnaire/collector.rb +262 -0
- data/lib/groupdocs/questionnaire/execution.rb +93 -10
- data/lib/groupdocs/questionnaire/question.rb +1 -2
- data/lib/groupdocs/signature.rb +16 -24
- data/lib/groupdocs/signature/contact.rb +2 -4
- data/lib/groupdocs/signature/envelope.rb +3 -6
- data/lib/groupdocs/signature/envelope/log.rb +2 -4
- data/lib/groupdocs/signature/field.rb +21 -42
- data/lib/groupdocs/signature/field/location.rb +18 -36
- data/lib/groupdocs/signature/form.rb +9 -18
- data/lib/groupdocs/signature/list.rb +1 -2
- data/lib/groupdocs/signature/recipient.rb +3 -6
- data/lib/groupdocs/signature/role.rb +4 -8
- data/lib/groupdocs/signature/shared/entity_fields.rb +12 -20
- data/lib/groupdocs/signature/template.rb +1 -2
- data/lib/groupdocs/storage/file.rb +3 -1
- data/lib/groupdocs/storage/folder.rb +7 -1
- data/lib/groupdocs/subscription.rb +6 -12
- data/lib/groupdocs/subscription/limit.rb +4 -8
- data/lib/groupdocs/user.rb +3 -6
- data/lib/groupdocs/version.rb +1 -1
- data/spec/groupdocs/api/helpers/accessor_helper_spec.rb +16 -0
- data/spec/groupdocs/api/helpers/mime_helper_spec.rb +16 -0
- data/spec/groupdocs/api/helpers/rest_helper_spec.rb +4 -0
- data/spec/groupdocs/api/request_spec.rb +3 -5
- data/spec/groupdocs/datasource/field_spec.rb +3 -6
- data/spec/groupdocs/datasource_spec.rb +8 -15
- data/spec/groupdocs/document/annotation/reply_spec.rb +13 -24
- data/spec/groupdocs/document/annotation/reviewer_spec.rb +5 -9
- data/spec/groupdocs/document/annotation_spec.rb +35 -40
- data/spec/groupdocs/document/change_spec.rb +6 -11
- data/spec/groupdocs/document/field_spec.rb +13 -13
- data/spec/groupdocs/document/metadata_spec.rb +5 -10
- data/spec/groupdocs/document/rectangle_spec.rb +6 -18
- data/spec/groupdocs/document/view_spec.rb +3 -6
- data/spec/groupdocs/document_spec.rb +123 -10
- data/spec/groupdocs/job_spec.rb +9 -18
- data/spec/groupdocs/questionnaire/collector_spec.rb +201 -0
- data/spec/groupdocs/questionnaire/execution_spec.rb +91 -23
- data/spec/groupdocs/questionnaire/page_spec.rb +3 -6
- data/spec/groupdocs/questionnaire/question/answer_spec.rb +2 -4
- data/spec/groupdocs/questionnaire/question_spec.rb +7 -14
- data/spec/groupdocs/questionnaire_spec.rb +117 -41
- data/spec/groupdocs/signature/contact_spec.rb +9 -17
- data/spec/groupdocs/signature/envelope/log_spec.rb +8 -16
- data/spec/groupdocs/signature/envelope_spec.rb +9 -17
- data/spec/groupdocs/signature/field/location_spec.rb +32 -65
- data/spec/groupdocs/signature/field_spec.rb +48 -95
- data/spec/groupdocs/signature/form_spec.rb +22 -43
- data/spec/groupdocs/signature/list_spec.rb +6 -11
- data/spec/groupdocs/signature/recipient_spec.rb +11 -22
- data/spec/groupdocs/signature/role_spec.rb +11 -21
- data/spec/groupdocs/signature/template_spec.rb +2 -4
- data/spec/groupdocs/signature_spec.rb +28 -54
- data/spec/groupdocs/storage/file_spec.rb +14 -26
- data/spec/groupdocs/storage/folder_spec.rb +16 -22
- data/spec/groupdocs/storage/package_spec.rb +2 -4
- data/spec/groupdocs/subscription/limit_spec.rb +8 -16
- data/spec/groupdocs/subscription_spec.rb +11 -22
- data/spec/groupdocs/user_spec.rb +21 -41
- data/spec/groupdocs_spec.rb +4 -8
- data/spec/spec_helper.rb +12 -0
- data/spec/support/files/signature.png +0 -0
- data/spec/support/json/annotation_list.json +6 -6
- data/spec/support/json/comparison_changes.json +8 -8
- data/spec/support/json/document_fields.json +8 -8
- data/spec/support/json/document_page_images_get.json +20 -0
- data/spec/support/json/questionnaire_collector.json +17 -0
- data/spec/support/json/questionnaire_collectors.json +38 -0
- data/spec/support/json/questionnaire_collectors_add.json +10 -0
- data/spec/support/json/questionnaire_create.json +3 -1
- data/spec/support/json/{questionnaire_execution_create.json → questionnaire_execution_add.json} +1 -1
- data/spec/support/json/questionnaire_get.json +3 -0
- data/spec/support/json/questionnaires_get.json +36 -18
- data/spec/support/json/sign_documents.json +16 -0
- data/spec/support/json/templates_get.json +21 -0
- data/spec/support/shared_examples/api/entity.rb +2 -0
- data/spec/support/shared_examples/api/helpers/access_mode_helper.rb +1 -2
- data/spec/support/shared_examples/api/helpers/status_helper.rb +1 -2
- data/spec/support/shared_examples/signature/shared/entity_fields.rb +22 -43
- metadata +82 -16
- 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
|
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 [
|
13
|
+
# @return [GroupDocs::Questionnaire::Execution, nil]
|
13
14
|
#
|
14
|
-
def self.
|
15
|
-
|
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 [
|
21
|
-
attr_accessor :
|
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 [
|
35
|
-
attr_accessor :
|
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
|
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
|
-
|
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.
|
data/lib/groupdocs/signature.rb
CHANGED
@@ -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
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
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
|
-
|
80
|
-
|
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
|
-
|
96
|
-
|
97
|
-
|
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
|
-
|
17
|
-
|
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
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
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
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
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
|
-
|
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
|
-
|
32
|
-
|
33
|
-
|
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.
|