Class: AsposeEmailCloud::AiNameMatchRequest
- Inherits:
-
EmailRequest
- Object
- EmailRequest
- AsposeEmailCloud::AiNameMatchRequest
- Defined in:
- lib/aspose-email-cloud/models/ai_name_match_request.rb
Overview
Request model for ai_name_match operation.
Instance Attribute Summary collapse
-
#encoding ⇒ String
A character encoding name.
-
#language ⇒ String
An ISO-639 code of the language; either 639-1 or 639-3 (e.g. "it" or "ita" for Italian).
-
#location ⇒ String
A geographic code such as an ISO-3166 two letter country code, for example "FR" for France.
-
#name ⇒ String
A name to match.
-
#other_name ⇒ String
Another name to match.
-
#script ⇒ String
A writing system code; starts with the ISO-15924 script name.
-
#style ⇒ String
Name writing style.
Instance Method Summary collapse
-
#initialize(name:, other_name:, language: nil, location: nil, encoding: nil, script: nil, style: nil) ⇒ AiNameMatchRequest
constructor
Compare people's names.
- #to_http_info(api_client) ⇒ Object
Methods inherited from EmailRequest
select_header_accept, select_header_content_type
Constructor Details
#initialize(name:, other_name:, language: nil, location: nil, encoding: nil, script: nil, style: nil) ⇒ AiNameMatchRequest
Compare people's names. Uses options for comparing instructions.
62 63 64 65 66 67 68 69 70 |
# File 'lib/aspose-email-cloud/models/ai_name_match_request.rb', line 62 def initialize(name:, other_name:, language: nil, location: nil, encoding: nil, script: nil, style: nil) self.name = name if name self.other_name = other_name if other_name self.language = language if language self.location = location if location self.encoding = encoding if encoding self.script = script if script self.style = style if style end |
Instance Attribute Details
#encoding ⇒ String
A character encoding name.
46 47 48 |
# File 'lib/aspose-email-cloud/models/ai_name_match_request.rb', line 46 def encoding @encoding end |
#language ⇒ String
An ISO-639 code of the language; either 639-1 or 639-3 (e.g. "it" or "ita" for Italian).
40 41 42 |
# File 'lib/aspose-email-cloud/models/ai_name_match_request.rb', line 40 def language @language end |
#location ⇒ String
A geographic code such as an ISO-3166 two letter country code, for example "FR" for France.
43 44 45 |
# File 'lib/aspose-email-cloud/models/ai_name_match_request.rb', line 43 def location @location end |
#name ⇒ String
A name to match.
34 35 36 |
# File 'lib/aspose-email-cloud/models/ai_name_match_request.rb', line 34 def name @name end |
#other_name ⇒ String
Another name to match.
37 38 39 |
# File 'lib/aspose-email-cloud/models/ai_name_match_request.rb', line 37 def other_name @other_name end |
#script ⇒ String
A writing system code; starts with the ISO-15924 script name.
49 50 51 |
# File 'lib/aspose-email-cloud/models/ai_name_match_request.rb', line 49 def script @script end |
#style ⇒ String
Name writing style. Enum, available values: Formal, Informal, Legal, Academic
52 53 54 |
# File 'lib/aspose-email-cloud/models/ai_name_match_request.rb', line 52 def style @style end |
Instance Method Details
#to_http_info(api_client) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/aspose-email-cloud/models/ai_name_match_request.rb', line 72 def to_http_info(api_client) # verify the required parameter 'name' is set if api_client.config.client_side_validation && self.name.nil? raise ArgumentError, "Missing the required parameter 'name' when calling AiNameApi.match" end # verify the required parameter 'other_name' is set if api_client.config.client_side_validation && self.other_name.nil? raise ArgumentError, "Missing the required parameter 'other_name' when calling AiNameApi.match" end # resource path local_var_path = '/email/AiName/match' # query parameters query_params = {} query_params[:name] = self.name query_params[:otherName] = self.other_name query_params[:language] = self.language unless self.language.nil? query_params[:location] = self.location unless self.location.nil? query_params[:encoding] = self.encoding unless self.encoding.nil? query_params[:script] = self.script unless self.script.nil? query_params[:style] = self.style unless self.style.nil? # form parameters form_params = {} # http body (model) auth_names = ['JWT'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = EmailRequest.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : EmailRequest.select_header_content_type(['application/json']) AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, auth_names: auth_names) end |