Class: Vero::Api::Workers::Users::ReidentifyAPI
- Inherits:
-
BaseAPI
show all
- Defined in:
- lib/vero/api/users/reidentify_api.rb
Instance Attribute Summary
Attributes inherited from BaseAPI
#domain, #options
Instance Method Summary
collapse
Methods inherited from BaseAPI
#initialize, perform, #perform
Instance Method Details
12
13
14
|
# File 'lib/vero/api/users/reidentify_api.rb', line 12
def request
RestClient.put(url, request_params_as_json, request_content_type)
end
|
8
9
10
|
# File 'lib/vero/api/users/reidentify_api.rb', line 8
def url
"#{@domain}/api/v2/users/reidentify.json"
end
|
#validate! ⇒ Object
16
17
18
19
|
# File 'lib/vero/api/users/reidentify_api.rb', line 16
def validate!
raise ArgumentError, 'Missing :id' if options[:id].to_s.blank?
raise ArgumentError, 'Missing :new_id' if options[:new_id].to_s.blank?
end
|