cloudmersive-ocr-api-client 1.4.9 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbf6fe8d17fcebe4636f0b87918956b8a596a3a0f8f902cd0fc907e0ad8a2159
|
4
|
+
data.tar.gz: c14e9e2d3a617121f5078a76b2963fbd2645610947c820b776627522eb0512e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63e15f6dc0f5fbf2065e2ce1f07a4147a69a92b46d5e655c19a642b6b2ebcf2d9d7782c6276d80a783b91fd973b4ddf542bd93a35af382043192a4322201e064
|
7
|
+
data.tar.gz: d4671f97cdde8304a5a0bf3fdadfd4146c45bccbd05724230c748ab8af6f3187d3d064177aa7d723adc7ce023183e140a5e494df6c9dbcee172628136a0d8dcb
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The powerful Optical Character Recognition (OCR) APIs let you convert scanned im
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 1.
|
10
|
+
- Package version: 1.5.0
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-ocr-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-ocr-api-client-1.
|
26
|
+
gem install ./cloudmersive-ocr-api-client-1.5.0.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-ocr-api-client-1.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-ocr-api-client-1.5.0.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-ocr-api-client', '~> 1.
|
34
|
+
gem 'cloudmersive-ocr-api-client', '~> 1.5.0'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
data/docs/FormFieldDefinition.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**left_anchor** | **String** | Optional - the left-hand anchor of the field | [optional]
|
8
8
|
**top_anchor** | **String** | Optional - the top anchor of the field | [optional]
|
9
9
|
**bottom_anchor** | **String** | Optional - the bottom anchor of the field | [optional]
|
10
|
+
**alternate_anchor** | **String** | Optional - alterate match text for the specified anchor | [optional]
|
10
11
|
**anchor_mode** | **String** | Optional - the matching mode for the anchor. Possible values are Complete (requires the entire anchor to match) and Partial (allows only part of the anchor to match) and Horizontal (anchor must be laid out horizontally). Default is Partial. | [optional]
|
11
12
|
**data_type** | **String** | The data type of the field; possible values are INTEGER (Integer value), STRING (Arbitrary string value, spaces are permitted), DATE (Date in a structured format), DECIMAL (Decimal number), ALPHANUMERIC (Continuous alphanumeric string with no spaces), STRINGNOWHITESPACE (A string that contains no whitespace characters), SERIALNUMBER (A serial-number style string that contains letters and numbers, and certain symbols; must contain at least one number), ALPHAONLY (Alphabet characters only, no numbers or symbols or whitespace) | [optional]
|
12
13
|
**target_digit_count** | **Integer** | Optional - the target number of digits in the field; useful for fixed-length fields | [optional]
|
@@ -27,6 +27,9 @@ module CloudmersiveOcrApiClient
|
|
27
27
|
# Optional - the bottom anchor of the field
|
28
28
|
attr_accessor :bottom_anchor
|
29
29
|
|
30
|
+
# Optional - alterate match text for the specified anchor
|
31
|
+
attr_accessor :alternate_anchor
|
32
|
+
|
30
33
|
# Optional - the matching mode for the anchor. Possible values are Complete (requires the entire anchor to match) and Partial (allows only part of the anchor to match) and Horizontal (anchor must be laid out horizontally). Default is Partial.
|
31
34
|
attr_accessor :anchor_mode
|
32
35
|
|
@@ -74,6 +77,7 @@ module CloudmersiveOcrApiClient
|
|
74
77
|
:'left_anchor' => :'LeftAnchor',
|
75
78
|
:'top_anchor' => :'TopAnchor',
|
76
79
|
:'bottom_anchor' => :'BottomAnchor',
|
80
|
+
:'alternate_anchor' => :'AlternateAnchor',
|
77
81
|
:'anchor_mode' => :'AnchorMode',
|
78
82
|
:'data_type' => :'DataType',
|
79
83
|
:'target_digit_count' => :'TargetDigitCount',
|
@@ -97,6 +101,7 @@ module CloudmersiveOcrApiClient
|
|
97
101
|
:'left_anchor' => :'String',
|
98
102
|
:'top_anchor' => :'String',
|
99
103
|
:'bottom_anchor' => :'String',
|
104
|
+
:'alternate_anchor' => :'String',
|
100
105
|
:'anchor_mode' => :'String',
|
101
106
|
:'data_type' => :'String',
|
102
107
|
:'target_digit_count' => :'Integer',
|
@@ -137,6 +142,10 @@ module CloudmersiveOcrApiClient
|
|
137
142
|
self.bottom_anchor = attributes[:'BottomAnchor']
|
138
143
|
end
|
139
144
|
|
145
|
+
if attributes.has_key?(:'AlternateAnchor')
|
146
|
+
self.alternate_anchor = attributes[:'AlternateAnchor']
|
147
|
+
end
|
148
|
+
|
140
149
|
if attributes.has_key?(:'AnchorMode')
|
141
150
|
self.anchor_mode = attributes[:'AnchorMode']
|
142
151
|
end
|
@@ -215,6 +224,7 @@ module CloudmersiveOcrApiClient
|
|
215
224
|
left_anchor == o.left_anchor &&
|
216
225
|
top_anchor == o.top_anchor &&
|
217
226
|
bottom_anchor == o.bottom_anchor &&
|
227
|
+
alternate_anchor == o.alternate_anchor &&
|
218
228
|
anchor_mode == o.anchor_mode &&
|
219
229
|
data_type == o.data_type &&
|
220
230
|
target_digit_count == o.target_digit_count &&
|
@@ -239,7 +249,7 @@ module CloudmersiveOcrApiClient
|
|
239
249
|
# Calculates hash code according to all attributes.
|
240
250
|
# @return [Fixnum] Hash code
|
241
251
|
def hash
|
242
|
-
[field_id, left_anchor, top_anchor, bottom_anchor, anchor_mode, data_type, target_digit_count, minimum_character_count, allow_numeric_digits, vertical_alignment_type, horizontal_alignment_type, target_field_width_relative, target_field_height_relative, target_field_horizontal_adjustment, target_field_vertical_adjustment, ignore, options].hash
|
252
|
+
[field_id, left_anchor, top_anchor, bottom_anchor, alternate_anchor, anchor_mode, data_type, target_digit_count, minimum_character_count, allow_numeric_digits, vertical_alignment_type, horizontal_alignment_type, target_field_width_relative, target_field_height_relative, target_field_horizontal_adjustment, target_field_vertical_adjustment, ignore, options].hash
|
243
253
|
end
|
244
254
|
|
245
255
|
# Builds the object from hash
|
@@ -56,6 +56,12 @@ describe 'FormFieldDefinition' do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
describe 'test attribute "alternate_anchor"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
59
65
|
describe 'test attribute "anchor_mode"' do
|
60
66
|
it 'should work' do
|
61
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudmersive-ocr-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloudmersive
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|