module Validic::REST::Profile

Public Instance Methods

create_profile(options = {}) click to toggle source
# File lib/validic/rest/profile.rb, line 11
def create_profile(options = {})
  token = options.delete(:authentication_token)
  resp = post_request(:profile, authentication_token: token, profile: options)
  Validic::Profile.new(resp['profile'])
end
get_profile(options = {}) click to toggle source
# File lib/validic/rest/profile.rb, line 6
def get_profile(options = {})
  resp = get_request(:profile, options)
  Validic::Profile.new(resp)
end