Module: Validic::REST::Profile

Included in:
Client
Defined in:
lib/validic/rest/profile.rb

Instance Method Summary collapse

Instance Method Details

#create_profile(options = {}) ⇒ Object



11
12
13
14
15
# 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 = {}) ⇒ Object



6
7
8
9
# File 'lib/validic/rest/profile.rb', line 6

def get_profile(options = {})
  resp = get_request(:profile, options)
  Validic::Profile.new(resp)
end